mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-15 22:32:19 +03:00
10 lines
185 B
Idris
10 lines
185 B
Idris
|
module Temp
|
||
|
|
||
|
import Data.List
|
||
|
|
||
|
foo : (l : List Int) -> String -> String
|
||
|
foo l "length" with (length l)
|
||
|
foo l "length" | 0 = "Zero"
|
||
|
foo l "length" | n = "Not Zero"
|
||
|
foo l s = "Other"
|