File tree Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Expand file tree Collapse file tree 1 file changed +0
-12
lines changed Original file line number Diff line number Diff line change @@ -36,12 +36,7 @@ pub trait Applicative<F: HKT>: Functor<F> {
3636 ///
3737 /// # Examples
3838 ///
39- /// ```
40- /// use deep_causality_haft::{Applicative, OptionWitness, HKT};
4139 ///
42- /// let opt_val: Option<<OptionWitness as HKT>::Type<i32>> = Some(OptionWitness::pure(10));
43- /// assert_eq!(opt_val, Some(Some(10)));
44- /// ```
4540 fn pure < T > ( value : T ) -> F :: Type < T > ;
4641
4742 /// Applies a function wrapped in a context (`f_ab`) to a value wrapped in a context (`f_a`).
@@ -68,14 +63,7 @@ pub trait Applicative<F: HKT>: Functor<F> {
6863 ///
6964 /// # Examples
7065 ///
71- /// ```
72- /// use deep_causality_haft::{Applicative, OptionWitness, HKT};
7366 ///
74- /// let f_add_one: Option<<OptionWitness as HKT>::Type<fn(i32) -> i32>> = Some(Some(|x| x + 1));
75- /// let val: Option<<OptionWitness as HKT>::Type<i32>> = Some(Some(10));
76- /// let result = OptionWitness::apply(f_add_one.unwrap(), val.unwrap());
77- /// assert_eq!(result, Some(11));
78- /// ```
7967 fn apply < A , B , Func > ( f_ab : F :: Type < Func > , f_a : F :: Type < A > ) -> F :: Type < B >
8068 where
8169 Func : FnMut ( A ) -> B ,
You can’t perform that action at this time.
0 commit comments