mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 18:21:47 +03:00
8 lines
161 B
Idris
8 lines
161 B
Idris
|
import Data.Vect
|
||
|
|
||
|
takeFromStream : List (n ** Vect n Int)
|
||
|
takeFromStream = [(n ** take n [3..]) | n <- [0, 1, 5]]
|
||
|
|
||
|
main : IO ()
|
||
|
main = do printLn takeFromStream
|