Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- arr = ['huh','what','why'];
- // value
- foreach( a : arr )
- println( a );
- // key/value
- foreach( a,b : arr )
- println( a, " = ", b );
- // key
- foreach( a, : arr )
- println( a );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement