2015-11-10から1日間の記事一覧
jashkenas/underscoreの_.sortedIndexを読んだ。 概要 _.sortedIndex(list, value, [iteratee], [context]) ソートされているlistに対して、valueがどの位置に入るかを返す。 _.sortedIndex([10, 20, 30, 40, 50], 35); // 3 ソースコード _.sortedIndex = f…
jashkenas/underscoreの_.sortedIndexを読んだ。 概要 _.sortedIndex(list, value, [iteratee], [context]) ソートされているlistに対して、valueがどの位置に入るかを返す。 _.sortedIndex([10, 20, 30, 40, 50], 35); // 3 ソースコード _.sortedIndex = f…