Specified that the stream api isn't technically a lambda (#23161)
* Specified that the stream api isn't technically a lambda * Cleaned up statement
This commit is contained in:
committed by
Manish Giri
parent
cd85262256
commit
d8609b5560
@ -24,7 +24,7 @@ A lambda expression is composed of three parts — function parameters, the `->`
|
|||||||
|
|
||||||
The `Stream` API was also introduced in Java 8, and can be used to allow chaining of sequential and aggregate operations. Stream operations are either intermediate or terminal in nature.
|
The `Stream` API was also introduced in Java 8, and can be used to allow chaining of sequential and aggregate operations. Stream operations are either intermediate or terminal in nature.
|
||||||
|
|
||||||
Normally, the Stream API is used in conjunction with lambda expressions to produce concise code.
|
The stream API isn't technically a lambda function, but is used in conjunction with lambda expressions to produce concise code.
|
||||||
|
|
||||||
In this small example you can see that one of the utilities of a stream is to receive a certain property of all objects in a list and return it in another list using intermediate and terminal operations.
|
In this small example you can see that one of the utilities of a stream is to receive a certain property of all objects in a list and return it in another list using intermediate and terminal operations.
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user