Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- sowstuff := (Do[Sow[i, tag1], {i, 5}]; Do[Sow[i^2, tag2], {i, 5}])
- Reap[sowstuff] // Last
- -> {{1, 2, 3, 4, 5}, {1, 4, 9, 16, 25}}
- Reap[sowstuff, {tag1, tag2}] // Last
- -> {{{1, 2, 3, 4, 5}}, {{1, 4, 9, 16, 25}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement