Skip to content

Commit

Permalink
add example initArray usage
Browse files Browse the repository at this point in the history
  • Loading branch information
IR0NSIGHT committed Oct 20, 2023
1 parent 593ab8f commit 8e8afe4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions examples/pos/arrays.check
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@ Some(hello)
Some(world)
None()
Some(foo)
Hello World,Hello World,Hello World,Hello World
3 changes: 3 additions & 0 deletions examples/pos/arrays.effekt
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,7 @@ def main() = {
println(show(get(arr, 4)));
put(arr, 4, "foo");
println(show(get(arr, 4)))

val arrWithVals = initArray(4,"Hello World");
println(arrWithVals)
}

0 comments on commit 8e8afe4

Please sign in to comment.