Toggle navigation
Hot Examples
DE
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
PHP
PHP
C#
Java
Go
C++
Python
JS
TS
Suchen
Home
phpstreams
Stream
limit
phpstreams\Stream::limit PHP Method
Stream Class Documentation
Datei anzeigen
Open project: bertptrs/phpstreams
limit()
public
method
All elements after the limit are not considered or generated, so this can be used with infinite streams.
public
limit
(
integer
$limit
) :
Stream
$limit
integer
The maximum number of elements to return.
return
Stream
public function limit($limit) { return new LimitOperation($this, $limit); }
Stream
__construct
all
any
collect
count
distinct
filter
flatMap
getIterator
isSorted
isValidSource
limit
map
reduce
skip
sorted
toArray