Flattening nested arrays: a little exercise in functional refactoring

InstructorAlan Shaw

Share this video with your friends

Send Tweet

In this lesson we write an imperative function to flatten nested arrays, and then use the popular map, reduce, compose, and pipe functions to transform it into a high-level, point-free, functional implementation.

Łukasz Schabek
~ 6 years ago

Not really clear what's going on here.