Tracks
/
F#
F#
/
Syllabus
/
Higher Order Functions
Hi

Higher Order Functions in F#

0 exercises

About Higher Order Functions

A higher-order function is a function that either:

  • Takes a function as an argument
  • Returns a function

A function argument is just a regular argument, albeit one that you can invoke.

let double = fun x -> x * 2

let apply f x = f x

apply double 3
// => 6
Edit via GitHub The link opens in a new window or tab