pub fn append<Brand>(
a: Apply<Brand, ()>,
) -> impl Fn(Apply<Brand, ()>) -> Apply<Brand, ()>
Expand description
Associative operation that combines two values of the same type.
Free function version that dispatches to the typeclass method.
§Type Signature
forall a. Semigroup a => a -> a -> a
§Examples
use fp_library::{brands::StringBrand, functions::append};
assert_eq!(
append::<StringBrand>("Hello, ".to_string())("World!".to_string()),
"Hello, World!"
);