lean2/tests/lean/notation2.lean

6 lines
111 B
Text
Raw Normal View History

import data.list data.num
open list
infixr `::` := cons
check 1 :: 2 :: nil
check 1 :: 2 :: 3 :: 4 :: 5 :: nil