2013-11-06から1日間の記事一覧
jsのコードをcoffeeで書き直してた際に見つけた。 やる前からだいたいわかってたんだけどjavascriptに無限リストはないので Array::zip = (arr) -> base = if (this.length < arr.length) then this else arr [0...base.length].map((i) -> [this[i], arr[i]…
jsのコードをcoffeeで書き直してた際に見つけた。 やる前からだいたいわかってたんだけどjavascriptに無限リストはないので Array::zip = (arr) -> base = if (this.length < arr.length) then this else arr [0...base.length].map((i) -> [this[i], arr[i]…