Skip to main content

Module first

Module first 

Source
Expand description

A newtype wrapper whose Semigroup instance always keeps the first (leftmost) value.

§Examples

use fp_library::{
	functions::*,
	types::First,
};

assert_eq!(append(First(1), First(2)), First(1));

Structs§

First
A newtype wrapper whose Semigroup instance always keeps the first value.