mirror of
https://github.com/edwinb/Idris2-boot.git
synced 2024-12-18 18:31:43 +03:00
e6121e0935
This is the result of running the command: $ find . -name '*.idr' -type f -exec sed -i -E 's/\s+$//' {} + I confirmed before running it that this would not affect any markdown formatting in documentation comments.
10 lines
202 B
Idris
10 lines
202 B
Idris
IntOrChar : Bool -> Type
|
|
IntOrChar True = Int
|
|
IntOrChar False = Char
|
|
|
|
foo : Nat -> (x : Bool) -> IntOrChar x -> String
|
|
foo num x i
|
|
= case x of
|
|
True => show num
|
|
False => show i
|