gleam/function
Functions
pub fn flip(fun: fn(a, b) -> c) -> fn(b, a) -> c
Takes a function that takes two arguments and returns a new function that takes the same two arguments, but in reverse order.
pub fn flip(fun: fn(a, b) -> c) -> fn(b, a) -> c
Takes a function that takes two arguments and returns a new function that takes the same two arguments, but in reverse order.