
Functor and Applicative Quiz
Presentation
•
Computers
•
University
•
Practice Problem
•
Hard
Jess Foster
Used 71+ 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
9 questions
C4 W4 D2
Presentation
•
Professional Development
11 questions
Robotics
Presentation
•
University
10 questions
3.2 NETIQUETTE DISCUSSION
Presentation
•
University
8 questions
WEEK 4 Review
Presentation
•
University
11 questions
TOEIC Preparation
Presentation
•
University
10 questions
Module 2 Chapter 5 Lecture 2
Presentation
•
University
11 questions
Spam
Presentation
•
University
12 questions
Personal Pronouns
Presentation
•
University
Popular Resources on Wayground
20 questions
"What is the question asking??" Grades 3-5
Quiz
•
1st - 5th Grade
20 questions
“What is the question asking??” Grades 6-8
Quiz
•
6th - 8th Grade
10 questions
Fire Safety Quiz
Quiz
•
12th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
34 questions
STAAR Review 6th - 8th grade Reading Part 1
Quiz
•
6th - 8th Grade
20 questions
“What is the question asking??” English I-II
Quiz
•
9th - 12th Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
47 questions
8th Grade Reading STAAR Ultimate Review!
Quiz
•
8th Grade
Discover more resources for Computers
15 questions
LGBTQ Trivia
Quiz
•
University
36 questions
8th Grade US History STAAR Review
Quiz
•
KG - University
25 questions
5th Grade Science STAAR Review
Quiz
•
KG - University
16 questions
Parallel, Perpendicular, and Intersecting Lines
Quiz
•
KG - Professional Dev...
20 questions
5_Review_TEACHER
Quiz
•
University
10 questions
Applications of Quadratic Functions
Quiz
•
10th Grade - University
10 questions
Add & Subtract Mixed Numbers with Like Denominators
Quiz
•
KG - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...