mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-24 20:23:11 +03:00
12 lines
190 B
Idris
12 lines
190 B
Idris
|
module Main
|
||
|
|
||
|
import Data.Fin
|
||
|
|
||
|
%builtin Natural Nat
|
||
|
%builtin Natural Fin
|
||
|
|
||
|
%builtin NaturalToInteger Data.Fin.finToInteger
|
||
|
|
||
|
main : IO ()
|
||
|
main = putStrLn $ show $ finToInteger $ FS $ FZ {k=34}
|