Skip to content

Commit d2a1625

Browse files
committed
adjust foreach example
1 parent 190b977 commit d2a1625

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/foreach.idr

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@ import IdrisScript.Arrays
55

66
main : IO ()
77
main = do
8-
arr <- toJSArray {from=Int} {to=JSNumber} [1 .. 100]
9-
forEach (\elm => log (getProof elm)) arr
8+
arr <- toJSArray {from=Int} {to=JSNumber} [1..100]
9+
forEach (\elm => log (getProof !(pack elm))) arr

0 commit comments

Comments
 (0)