mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-25 12:42:02 +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}
|