1 min readNov 18, 2018
--
Thanks for reading, the chain is nested function calls as follows
chain(1, a, b, c) is c(b(a(1)))
If one function throws error the chain will fail, the error stack will show functions in reverse order like c => b => a.
The delegates you are passing to functions like map, reduce needs to implement desired error handling.