Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

idk

Name: Anonymous 2013-06-30 16:10

Sometimes I think OOP code can be easier to read than functional or procedural

[1..10].map(x => x * 2).forEach(print)

versus

forEach(map([1..10], x => x * 2)), print)


is it possible for a language to allow you to write in both ways? I think F# has something like it.

Name: Anonymous 2013-06-30 16:48

>>3
here map Xs F => Xs map F

it implements map function on top of map method.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List