Skip to content

Commit

Permalink
[#54] Changes, cheatsheet
Browse files Browse the repository at this point in the history
  • Loading branch information
amaembo committed Jan 18, 2016
1 parent cab639c commit 2cd4fdb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
* [#51] Fixed: `StreamEx.parallel(fjp).runLengths()` fails to run the task in the specified pool.
* [#52] `StreamEx.append(T...)` and `prepend(T...)` are declared as @SafeVarargs and final now.
* [#53] Optimized: `mapFirst`/`mapLast` methods will have less overhead now, especially for primitive streams.
* [#54] Added: `StreamEx.headTail()`: map to the new stream using the first stream element and the stream of the rest elements.

### 0.5.2
* [#3] Optimized: parallel performance of `StreamEx.ofLines` as well as `StreamEx.split`
Expand Down
2 changes: 2 additions & 0 deletions CHEATSHEET.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,8 @@ Peek entry keys and values using `BiConsumer` | `EntryStream.peekKeyValue()`

What I want | How to get it
--- | ---
Extract first stream element and use it to alternate the rest of the stream | `StreamEx.headTail()`
Define almost any custom intermediate operation recursively | `StreamEx.headTail()`
Take stream elements while the condition is true | `any.takeWhile()`
Skip stream elements while the condition is true | `any.dropWhile()`
Work-around parallel stream skip bug prior to Java 8u60 | `any.skipOrdered()`
Expand Down

0 comments on commit 2cd4fdb

Please sign in to comment.