Idris2-boot/tests/chez/chez012/array.idr
Edwin Brady bb6cefc0a9 Added Data.IOArray
plus scheme primitives for runtime, via vectors
2020-01-30 17:04:33 +00:00

12 lines
236 B
Idris

import Data.IOArray
main : IO ()
main
= do x <- newArray 20
writeArray x 10 "Hello"
writeArray x 11 "World"
printLn !(toList x)
y <- fromList (map Just [1,2,3,4,5])
printLn !(toList y)