scalikephp

SeqOps

Seq operations.

Table of Contents

append()  : Seq
contains()  : bool
distinct()  : Seq
distinctBy()  : Seq
filter()  : Seq
flatMap()  : Seq
flatten()  : Seq
fold()  : mixed
groupBy()  : Map
jsonSerialize()  : array<string|int, mixed>
map()  : Seq
max()  : mixed
maxBy()  : mixed
min()  : mixed
minBy()  : mixed
partition()  : array<string|int, mixed>|array<string|int, Seq>
prepend()  : Seq
reverse()  : Seq
sortBy()  : Seq
sumBy()  : mixed
takeRight()  : Seq
toGenerator()  : Generator
toMap()  : Map
toSeq()  : Seq

Methods

append()

public append(iteratable<string|int, mixed> $that) : Seq
Parameters
$that : iteratable<string|int, mixed>
Return values
Seq

contains()

public contains(mixed $elem) : bool
Parameters
$elem : mixed
Return values
bool

distinctBy()

public distinctBy(Closure $f) : Seq
Parameters
$f : Closure
Return values
Seq

filter()

public filter(Closure $p) : Seq
Parameters
$p : Closure
Return values
Seq

flatMap()

public flatMap(Closure $f) : Seq
Parameters
$f : Closure
Return values
Seq

fold()

public fold(mixed $z, Closure $op) : mixed
Parameters
$z : mixed
$op : Closure
Return values
mixed

groupBy()

public groupBy(mixed $f) : Map
Parameters
$f : mixed
Return values
Map

jsonSerialize()

public jsonSerialize() : array<string|int, mixed>
Return values
array<string|int, mixed>

map()

public map(Closure $f) : Seq
Parameters
$f : Closure
Return values
Seq

max()

public max() : mixed
Return values
mixed

maxBy()

public maxBy(Closure $f) : mixed
Parameters
$f : Closure
Return values
mixed

min()

public min() : mixed
Return values
mixed

minBy()

public minBy(Closure $f) : mixed
Parameters
$f : Closure
Return values
mixed

partition()

public partition(Closure $p) : array<string|int, mixed>|array<string|int, Seq>
Parameters
$p : Closure
Return values
array<string|int, mixed>|array<string|int, Seq>

prepend()

public prepend(iteratable<string|int, mixed> $that) : Seq
Parameters
$that : iteratable<string|int, mixed>
Return values
Seq

sortBy()

public sortBy(mixed $f) : Seq
Parameters
$f : mixed
Return values
Seq

sumBy()

public sumBy(Closure $f) : mixed
Parameters
$f : Closure
Return values
mixed

takeRight()

public takeRight(int $n) : Seq
Parameters
$n : int
Return values
Seq

toGenerator()

public toGenerator() : Generator
Return values
Generator

toMap()

public toMap(mixed $key) : Map
Parameters
$key : mixed
Return values
Map

Search results