3 ms·
I can understand that concepts like flatMap, merge, reduce and zip can be intimidating at first. It would help to explain what they are and how they work with s
by seivan 11y ago
I can understand that concepts like flatMap, merge, reduce and zip can be intimidating at first. It would help to explain what they are and how they work with smaller examples outside of project code base.
https://jsbin.com/bemasodemi/edit?js,console https://jsbin.com/bemasodemi/edit?js,console
- Cthulhu_ 11y agoOne argument I'd like to use at one point is to explain a for-loop and what it does - intimidating? How about initializing a numerical variable, then creating a loop that checks the value of said variable, increments (or decrements), and in case of array operations, attempts to get an entry in that array in each loop. Versus for-each-entry-in-list-do-this.
- seivan 11y agoBe pragmatic, there's a higher chance that a developer has used said concept than the FRP mentioned above. Funny you should mention that for loop as it's been removed from Swift 2.2 ;-)