Fix typo in chunkBy cheatsheet.

This commit is contained in:
H. S. Teoh 2015-08-20 10:33:36 -07:00
parent de2df2bb04
commit 17e240b051

View file

@ -11,8 +11,8 @@ $(T2 cache,
Eagerly evaluates and caches another range's $(D front).) Eagerly evaluates and caches another range's $(D front).)
$(T2 cacheBidirectional, $(T2 cacheBidirectional,
As above, but also provides $(D back) and $(D popBack).) As above, but also provides $(D back) and $(D popBack).)
$(T2 chunkyBy, $(T2 chunkBy,
$(D chunkyBy!((a,b) => a[1] == b[1])([[1, 1], [1, 2], [2, 2], [2, 1]])) $(D chunkBy!((a,b) => a[1] == b[1])([[1, 1], [1, 2], [2, 2], [2, 1]]))
returns a range containing 3 subranges: the first with just returns a range containing 3 subranges: the first with just
$(D [1, 1]); the second with the elements $(D [1, 2]) and $(D [2, 2]); $(D [1, 1]); the second with the elements $(D [1, 2]) and $(D [2, 2]);
and the third with just $(D [2, 1]).) and the third with just $(D [2, 1]).)