mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
10 lines
174 B
Idris
10 lines
174 B
Idris
|
%logging "compiler.identity" 5
|
||
|
|
||
|
%spec a
|
||
|
identity : List a -> List a
|
||
|
identity [] = []
|
||
|
identity (x :: xs) = x :: identity xs
|
||
|
|
||
|
test : List Nat -> List Nat
|
||
|
test ns = identity ns
|