This adds support for variant types in the simple poly definitions. It is recommended that you avoid using these as much as possible, because they're a bit harder for the type unification to solve for them. The way this works is that these functions look at the available input types and then generate a (recursive) set of invariants which might hold true. It filters out any impossible ones, which is where this variant matching is done. It's less likely that you'll get a solution with this mechanism, but it is possible.
2 lines
24 B
Plaintext
2 lines
24 B
Plaintext
Vertex: test[len is: 4]
|