Idris2/tests/base/data_snoclist/SL.idr

10 lines
149 B
Idris
Raw Normal View History

import Data.SnocList
sing : a -> List a
sing = pure
main : IO ()
main = do
printLn $ foldr (::) Nil [< 1,2,3]
printLn $ foldMap sing [< 1,2,3]