mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-20 10:02:03 +03:00
078db21edf
Co-authored-by: Guillaume ALLAIS <guillaume.allais@ens-lyon.org>
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
|