Crate fera_fun [] [src]

Free functions for fun programming.

This crate can be used through fera crate.

Functions

first

Returns the first item of an iterator.

position_max_by_key

Returns the last position of the maximum element of a non empty iterator or None if iterator is empty.

position_min_by_key

Returns the first position of the minimum element of a non empty iterator or None if iterator is empty.

position_of

Returns the first position of an item of an iterator or None if the iterator does not produces the item.

set

Creates a HashSet from a iterator.

vec

Creates a Vector from a iterator.