Idris2/tests/idris2/reg020/matchlits.idr
MarcelineVQ 57e7f14bca add binary literals
Written via "0b" in the manner of other literals. e.g. 0b111001 = 57
2020-08-31 08:48:05 +01:00

7 lines
111 B
Idris

test1 : Int -> Int
test1 0b101 = 5
test1 0x100 = 42
test1 0o100 = 43
test1 1234567890 = 44
test1 _ = 0