
Functor and Applicative Quiz
Presentation
•
Computers
•
University
•
Practice Problem
•
Hard
Jess Foster
Used 72+ times
FREE Resource
3 Slides • 9 Questions
1
Functors
and
Applicatives
2
Functor
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
Type answer...
4
Fill in the Blanks
Type answer...
5
Fill in the Blanks
Type answer...
6
Fill in the Blanks
Type answer...
7
Fill in the Blanks
Type answer...
8
Applicative
<*>
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
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
Type answer...
Functors
and
Applicatives
Show answer
Auto Play
Slide 1 / 12
SLIDE
Similar Resources on Wayground
8 questions
Logic
Presentation
•
University
10 questions
Introduction Quizizz
Presentation
•
7th Grade
8 questions
Article 4: The Morality of Human Acts
Presentation
•
6th Grade - University
9 questions
Pronunciation of Inserts
Presentation
•
University
11 questions
Number the Stars Chapter 13
Presentation
•
KG - University
8 questions
INTRO TO FRENCH 1
Presentation
•
University
10 questions
Synonym
Presentation
•
1st - 3rd Grade
10 questions
open day quiz
Presentation
•
KG
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University