Crate fp_rust[][src]

Modules

common

In this module, there're many traits/structs and fns defined, for general purposes crossing over many modules of fpRust.

cor

In this module there're implementations & tests of Cor.

fp

In this module there're implementations & tests of general functional programming features.

handler

In this module there're implementations & tests of Handler. (Inspired by Android Handler)

maybe

In this module there're implementations & tests of Maybe.

monadio

In this module there're implementations & tests of MonadIO. It's inspired by Rx & MonadIO in Haskell

publisher

In this module, there're implementations & tests of Publisher

sync

In this module there're implementations & tests of general async handling features.

Macros

compose

Compose functions.

contains

Contains macro for Vec<T>, in currying ways by partial_left_last_one!().

filter

Filter macro for Vec<T>, in currying ways by partial_left_last_one!().

foldl

Foldl macro for Vec<T>, in currying ways by partial_left_last_one!().

foldr

Foldr macro for Vec<T>, in currying ways by partial_left_last_one!().

map

Map macro for Vec<T>, in currying ways by partial_left_last_one!().

partial_left_last_one

Partial application macro with variadic arguments for a pre-defined function, and currying the lastest one argument by returning closure.

pipe

Pipe functions.

reduce

Reduce macro for Vec<T>, in currying ways by partial_left_last_one!().

reverse

Reverse macro for Vec<T>, in currying ways.

spread_and_call

Spread the variadic arguments and call the given funciton.