Skip to content

Commit daeb8e5

Browse files
committed
Merge remote-tracking branch 'origin/main'
2 parents 7e33f91 + 0546a8a commit daeb8e5

File tree

1 file changed

+0
-12
lines changed

1 file changed

+0
-12
lines changed

deep_causality_haft/src/applicative.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)