mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-19 09:12:34 +03:00
a972778eab
They don't all pass yet, for minor reasons. Coming shortly... Unfortunately the startup overhead for chez is really noticeable here!
12 lines
236 B
Idris
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)
|