Module kaguya_rs::basic_fn::fun[][src]

Functions

add

x + y

concat

Concat two Iterator into one Vec

div

x / y

filter

Used for filter Iterator

filter_not

Used for reverse filter Iterator

find

find first element which match the key of Iterator<(K,V)>

foldl

Used for fold the double end iterator from the beginning with init value and fold function

foldr

Used for fold the double end iterator from the end with init value and fold function

head

Getting the first element of Iterator

id

Return what you pass to this function

init

Getting all elements of Iterator except the last one

last

Getting last element of Iterator

length

Get the length of Iterator

map

Used for data projection via mapping function.

max

Get max value of Iterator

min

Get min value of Iterator

mul

x * y

neg

Unary operator -

product

Invoke Mul over a Iterator

rem

Get reminder of division, i.e. x%y

reverse

Reverse a Iterator

skip

Skip first n elements and return a new Vec.

sorted

sort an Iterator, T must impl Ord

sorted_by

sort an Iterator by function

sub

x - y

sum

Used for sum Iterator

tail

Getting all elements of Iterator except first as Vec

take

Take first n elements and return a new Vec.

zip

Zip two iterator into one iterator which return same index of item on two iterators

zip_with

Zip two iterator into one iterator by mapping with a function