• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/4

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

4 Cards in this Set

  • Front
  • Back

First-Class Function

Functions can be computed, passed, stored, etc. wherever other values can be computed, passed, stored, etc



Can pass them to functions, return them from functions, put them in pairs, have them be part of the data a datatype constructor carries

Higher-Order Function

Function that takes or returns other functions

Generic Types (also called Parametic Polymorphism)


It lets functions take arguments of any type. It is a separate issue from first-class functions:



There are functions that take functions and do not have polymorphic types


There are functions with polymorphic types that do not take functions.

Anonymous Function

It is common to use anonymous functions as arguments to other functions.



Can put an anonymous function anywhere you can put an expression — it simply is a value, the function itself.



The only thing you cannot do with an anonymous function is recursion, exactly because you have no name to use for the recursive call



syntaxThe fn is a keyword and => (not =) is also part of the