Expand description
Combining two by-ref contexts, keeping the second value, with ref_apply_second.
This is the by-ref counterpart of ApplySecond.
§Examples
use fp_library::{
brands::*,
functions::{
explicit::apply_second,
*,
},
types::*,
};
let x = RcLazy::pure(3);
let y = RcLazy::pure(4);
let result = apply_second::<LazyBrand<RcLazyConfig>, _, _, _, _>(&x, &y);
assert_eq!(*result.evaluate(), 4);Traits§
- RefApply
Second - A type class for combining two by-ref contexts, keeping the second value.
Functions§
- ref_
apply_ second - Combines two contexts, keeping the value from the second.