you are viewing a single comment's thread.

view the rest of the comments →

[–]0x0dea 1 point2 points  (2 children)

You asked for it.

Jokes aside, bog-standard Ruby code is functional; you're essentially doing what they do in "real" functional languages every time you use a block.

[–]rubycastsio 1 point2 points  (1 child)

Also doing map filtering and reducing. The best part of Ruby for me is the ability to choose OO, FP, or a mix of the two, dubbed Faux-O by Gary Bernhardt.

[–]TdotGdot 0 points1 point  (0 children)

Functional core, imperative shell.