Skip to content

Instantly share code, notes, and snippets.

@hhutch
Last active May 20, 2020 20:02
Show Gist options
  • Select an option

  • Save hhutch/7415983 to your computer and use it in GitHub Desktop.

Select an option

Save hhutch/7415983 to your computer and use it in GitHub Desktop.
|------------+------------+-------------+---------+--------+----------+-----------+----------+------------+---------------+---------+--------------+--------------+--------------+--------|
| 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 |
|------------+------------+-------------+---------+--------+----------+-----------+----------+------------+---------------+---------+--------------+--------------+--------------+--------|
@hhutch

hhutch commented Nov 11, 2013

Copy link
Copy Markdown
Author

Added OCaml, Erlang and Common Lisp to the original.
Contributions encouraged

@hhutch

hhutch commented Nov 11, 2013

Copy link
Copy Markdown
Author

@wilmoore

Copy link
Copy Markdown

Added Ecmascript 5 Array.prototype.some
https://gist.github.com/wilmoore/6ad4da9bbd0a371d2ccc

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment