Search the courses, subjects, tracks, games and features, or jump straight to a page.
5 cards from this section. Quick, good the night before a test.
What is a first-class function?
Think about how functions can be used like any other data type.
Define a pure function.
Consider functions that do not affect global variables.
What is a first-class function?
Remember how functions can be used in different contexts.
True or False: Pure functions can cause side effects.
Consider what effects a function can have outside of its return value.
Implement a function that returns the first n prime numbers using functional programming principles.
Look into higher-order functions like filter and some form of map to generate a list of numbers.
Explain how you could use recursion to flatten a nested array structure.
Consider base cases where an element is not an array.
5 more questions in this section. Enroll free to practise them all.
Enroll free