Skip to content

Instantly share code, notes, and snippets.

@leque
Last active December 31, 2015 19:49
Show Gist options
  • Star 6 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save leque/8035729 to your computer and use it in GitHub Desktop.
Save leque/8035729 to your computer and use it in GitHub Desktop.

各言語のコレクション操作高階関数(メソッド、手続き)

Language
Common Lisp mapc mapcar find-if remove-if-not reduce reduce :from-end t some every
Scheme for-each map find filter fold, fold-left fold-right any, exists every, for-all
Haskell mapM_ map find filter foldl foldr any all
Caml Light do_list map - - it_list list_it exists for_all
OCaml iter map find filter, find_all fold_left fold_right exists for_all
F# iter map find filter fold foldBack exists forall
SML app map find filter foldl foldr exists all
Scala foreach map find filter foldLeft foldRight exists forall
ECMAScript forEach map - filter reduce reduceRight some every
Ruby each map, collect find, detect find_all, select reduce, inject - any? all?
Smalltalk do: collect: detect: select: inject:into: - anySatisfy: allSatisfy:
C# ForEach (List<T>のみ) Select First Where Aggregate - Any All
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment