mirror of
https://github.com/ilyakooo0/Idris-dev.git
synced 2024-09-21 14:09:30 +03:00
ddf9779f87
Actually a borrowed type can be used as many times as you like, it's just the names inside the pattern that can't be used without being lent first!
4 lines
64 B
Idris
4 lines
64 B
Idris
|
|
steal : {a : UniqueType} -> Borrowed a -> a
|
|
steal (Read x) = x
|