Skip to content

Commit

Permalink
adjust foreach example
Browse files Browse the repository at this point in the history
  • Loading branch information
raichoo committed Oct 3, 2014
1 parent 190b977 commit d2a1625
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples/foreach.idr
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ import IdrisScript.Arrays

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

0 comments on commit d2a1625

Please sign in to comment.