4 ms·
for and while aren't generic in the context of collections. It's very obvious what for item in itemsList: doSomething(item) means. In any case I think m
by valzam 5y ago
for and while aren't generic in the context of collections. It's very obvious what
for item in itemsList:
doSomething(item)
means. In any case I think map etc. are perfectly ok but it gets tricky when you talk about Options, Futures, Either etc. since I would argue most people don't immediately see how "looping" (I know it's not really looping) can apply here.
- dnautics 5y agoNot all FPs have options, futures, either (lisp, Julia, erlang, elixir)