
Functor and Applicative Quiz
Presentation
•
Computers
•
University
•
Practice Problem
•
Hard
Jess Foster
Used 72+ times
FREE Resource
3 Slides • 9 Questions
1
2
Generalisation of `map` for other types
Applying functions into a context
Structure preserving
Once you understand it, you will always know the behaviour of fmap for any Functor, without needing to know the implementation!
Using InstanceSigs
extension
3
Fill in the Blanks
What is the value of xs?
(Make sure to remove all spaces, no advanced matching option sadly)
Type answer...
4
Fill in the Blanks
What is the value of xs?
(Make sure to remove all spaces)
Type answer...
5
Fill in the Blanks
What is the value of x?
Type answer...
6
Fill in the Blanks
What is the value of y?
Type answer...
7
Fill in the Blanks
What is the value of t?
Type answer...
8
<*>
Applying functions within a context
Output structure depends on input structure alone. Values cannot affect structure
pure
Lifting values into a context
Preserves structure when used with <*>
All Applicatives are also Functors
Using InstanceSigs
extension
9
Fill in the Blanks
What is the value of x? (the second one)
Type answer...
10
Multiple Select
If the only information we have about a type is that it has an Applicative instance, what do we automatically know about it?
We know it also has a Functor instance
We know how <*> will produce new structure
We know what its structure looks like
We know a way to create a value of that type
We know we can sequence values of that type and combine their results
11
Multiple Select
Which of the following are true statements?
For a particular type, only one kind of Applicative behaviour is possible
For a particular type, only one kind of Functor behaviour is possible
For a particular type, it cannot have more than one Applicative behaviour simultaneously
Applicative is strictly more 'powerful' than Functor
All Functors are also Applicatives
12
Fill in the Blanks
How many elements does xs have?
Type answer...
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
9 questions
Lesson 3B Phishing
Presentation
•
University
10 questions
BRANDING
Presentation
•
University
10 questions
unit 7 lesson 3 and 4 nivel 202
Presentation
•
University
9 questions
Vectors
Presentation
•
University
10 questions
Modul Ajar
Presentation
•
University
10 questions
C++ User Input
Presentation
•
University
12 questions
Fredrick Douglas
Presentation
•
University
12 questions
E-mail Writing
Presentation
•
University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University