Last active
February 18, 2020 13:09
-
-
Save badboy/bd0a959663cc3f87b9fc84c4bbdc9011 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
error[E0308]: mismatched types | |
--> src/main.rs:12:48 | |
| | |
12 | let mut goal = bind(("x", "y", "z"), move |(x, y)| { | |
| ^^^^^^ expected a tuple with 3 elements, found one with 2 elements | |
| | |
= note: expected tuple `(Variable, Variable, Variable)` | |
found tuple `(_, _)` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let mut goal = bind(("x", "y", "z"), move |(x, y, z)| { | |
both( | |
both( | |
equal(x, "rec"), | |
equal(z, "recurse") | |
), | |
append(x, y, z) | |
) | |
}); | |
let states = goal(State::empty()); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment