ã¤ã¼ããfold ã®å¼±ç¹ã¨ãã¦ãè¨èªã«ãã£ã¦å¼æ°ã®é çªãã¾ã¡ã¾ã¡ã§ã æ£ç´æ¶ããããªãã£ã¦ã®ããããã ããªã誰ã対å¿è¡¨ã¨ãä½ã£ã¦ããããããã jijixi's diary - fold, map, for-each ãã®ä¸ããä¸ã¤é¸ã¶ã¨ãããã©ãï¼ ç¢ºãã«ããããã¨ãããããã®ã§ã¾ã¨ãã¦ã¿ã¾ããã ããã¤ãã®è¨èªã«ã¤ãã¦å¤§éæã«è¡¨ã«ããã¨æ¬¡ã®ãããªæãã è¨èª é¢æ° Haskell, OCaml, Scheme, Erlang foldl* f init items C++ accumulate(begin, end, init, f) Ruby*, JavaScript items.inject(init, f) Python, Perl* reduce(f, items [, init]) è¨èª ç³ã¿è¾¼ãäºé æ¼ç® Scheme(SRFI)*, Erlang f(item, acc)
{{#tags}}- {{label}}
{{/tags}}