ruxo
11/11/2013 - 4:26 PM

higher_order_functions.org

|------------+------------+-------------+---------+--------+----------+-----------+----------+------------+---------------+---------+--------------+--------------+--------------+--------|
| F#         | C#         | Scala       | Clojure | Python | Ruby     | Haskell   | SQL      | OCaml      | Common Lisp   | Erlang  | Smalltalk    | Scheme       | Ecmascript 5 | Perl 5 |
|------------+------------+-------------+---------+--------+----------+-----------+----------+------------+---------------+---------+--------------+--------------+--------------+--------|
| map        | Select     | map         | map     | map    | collect  | map       | Select   | map        | mapcar        | map     | collect:     | map          | map          | map    |
| filter     | Where      | filter      | filter  | filter | select   | filter    | Where    | filter     | remove-if-not | filter  | select:      | filter       | filter       | grep   |
| fold       | Aggregate  | foldLeft    | reduce  | reduce | inject   | foldl     |          | fold_left  | reduce        | foldl   | inject:into: | fold         | reduce       |        |
| foldBack   |            | foldRight   |         |        |          | foldr     |          | fold_right | reduce        | foldr   |              | foldr        | reduceRight  |        |
| reduce     | Aggregate  | reduceLeft  | reduce  | reduce | inject   | foldl1    |          |            | reduce        |         | fold:        | reduce       | reduce       | reduce |
| forall     | All        | forall      | every?  | all    | all?     | all       |          | forall     | every         | all     |              |              | every        |        |
| reduceBack |            | reduceRight |         |        |          | foldr1    |          |            | reduce        |         | collect:     | reduce-right |              |        |
| collect    | SelectMany | flatMap     | mapcat  |        | flat_map | concatMap | From     |            | collect       | flatmap | allSatisfy:  |              |              |        |
| exists     | Any        | exists      | some    | any    | any?     | any       | Exists   | exists     | some          | any     | do:          |              |              |        |
| sortBy     | OrderBy    | sortBy      | sort-by | sorted | sort_by  | sortBy    | Order By | sort       | sort          | sort    | sorted:      |              | sort         | sort   |
|------------+------------+-------------+---------+--------+----------+-----------+----------+------------+---------------+---------+--------------+--------------+--------------+--------|