try_empty

Function try_empty 

Source
pub fn try_empty<A: TryMonoid>() -> A
Expand description

Returns the empty value.

Free function version that dispatches to the type class’ associated function.

§Type Signature

forall a. TryMonoid a => () -> a

§Type Parameters

  • A: The type of the value.

§Returns

The empty value.

§Examples

use fp_library::{brands::*, classes::*, functions::*};

let x = try_empty::<String>();
assert_eq!(x, String::new());