Idris - Use implicit variable inside function -
How can we use an inherent variable inside a function? Reducing the simplest possible case, it is possible that:
:
while interpreting the right hand of the representative: no such variable n Is there a way to use values from inside? Or is it like asking for n inside sin n ?
In this case, is it possible to prove that Vect is a "bijection" and can recover the variable from there?
Actually there is no such variable n because it is surrounded by pattern matching is not.
You obviously need to bring the underlying variable in the scope:
dim: vector no -> gt; Net Dame (NIT) vec = n It is possible to see them in the IDRRL:
*> : Setsplicats * & gt; Set: Tee Dive Main .Dem: {n: Prelide. met. Net} - & gt; {A: type} - & gt; (__P__Rarg: Prelude.Wate. Search A) - & gt; Prelude.Nat.Nat
Comments
Post a Comment