From here:
names which begin with a lower case letter are automatically bound as implicit arguments in types
https://idris2.readthedocs.io/en/latest/tutorial/typesfuns.html#dependent-pairs
Two values. First value can show up in the second.
Eg: an implementation of Vector:
(n:Nat ** Vector n Int)
Values:
Explicit multiplicity examples:
Default multiplicity values:
Fun fact: Following is a function that cannot be realized as it requires two instances of a
but only 1 is allowed:
https://idris2.readthedocs.io/en/latest/tutorial/multiplicities.html
:?
: show help:import
: import modules:t
: show type of a value:ti
: show type (including implicit arguments) of a valueλΠ> :doc **
Used to build dependent pairs together with parentheses
Reload buffer | |̊ |
Case split | |̧ |