Sponsored
Reserved space — layout preview until AdSense is connected
Functions & Closures
medium
Memoize decorator
Implement a @memoize decorator that caches results of a function.
decorators
closures
caching
1
Functions & Closures
medium
Function composition
Return a function that applies f after g: compose(f, g)(x) == f(g(x)).
functional
closures
higher-order
Functions & Closures
hard
Curry a function
Auto-curry any multi-argument function so it returns partial applications until fully saturated.
functional
closures
inspect
Showing 3 challenges