Replies: 1 comment
-
Can we do something like: impl<A, B> Fold for AndThen<A, B>
where
A: Fold,
B: Fold,
{
fn fold_program(&mut self, n: Program) -> Program {
let p = self.first.fold_program(n);
self.second.fold_program(p)
}
} |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If
first
orsecond
hasvisit_program
,AndThen
never reaches thereI wonder if this is intensional or a bug, personally think it is a bug, it this is a bug, I'm willing to fix it
Beta Was this translation helpful? Give feedback.
All reactions