Crate curri

source ·

Macros§

Traits§

Functions§

  • [a -> bool] -> (a -> bool) Returns true if all the predicates are satisfied by the given value, false otherwise.
  • a -> (* -> a) Returns a function that always returns the given value.
  • [a -> bool] -> (a -> bool) Returns true if any of the predicates are satisfied by the given value, false otherwise.
  • [(a -> bool, a -> b)] -> (a -> Option) Returns the first value that satisfies the predicate, None otherwise.
  • (*) -> false Returns false.
  • (&*) -> false Returns false.
  • ((a -> bool), (a -> b)) -> ([a] -> Option b) Returns the first value that satisfies the predicate, None otherwise.
  • (*) -> * Returns the given value.
  • ([a -> bool], (a -> b), (a -> b)) -> (a -> b) Returns the result of the if_fn if the check is true, else the result of the else_fn.
  • [a -> b] -> ([a] -> [b]) Returns a new list containing the results of applying the function to each element of the list.
  • [(a, b) -> a] -> (a, [b]) -> a Returns the result of applying the function to each element of the list.
  • (*) -> true Returns true.
  • (&*) -> true Returns true.