続編もよければどうぞ 衝撃レポート!!map, reduce の本質にせまる! 市民権をえた map, filter, reduce 最近はどの言語でも配列やストリームにおいて map, filter, reduce が使われすっかり市民権を得た感じがある。一方、transducer はあんまり使われているのを聞いたことがない気がする。 本稿では transducer について少しだけまとめる。言語はJavaScriptを使う。 解きたい課題 メソッドチェーンで map, filter をつなげて処理を書くと、中間状態として無駄な配列がでてきてしまう。 targetList.filter(isHoge) //中間配列1つめ .filter(isMoge) //中間配列2つめ .map(doFoo) //中間配列3つめ .map(doBar) //中間配列4つめ .map(doBaz)
Built on IntelliJ Cursive is built on IntelliJ, the most sophisticated Java IDE. Cursive contains all the functionality you've come to expect from JetBrains products, from project management to version control integrations across all platforms. Building on IntelliJ also provides in-editor inspections and seamless Java integration. Built in Clojure Cursive is written (almost) entirely in Clojure, a
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く