0

I have a question about these two pieces of code

Reap[ 
   For[i = 1, i < 10, i++, Sow[i]; Sow[i^2]; Sow[i!]; Sow[N@Log@i]];
][[2, 1]] ~ Partition ~ 4

and

Reap[
   For[i = 1, i < 10, i++, Sow[{i, i^2, i!, N@Log@i}]];
][[2, 1]]

what is the meaning of [ ] [[ ]],I mean what does it do in the code above?

gwr
  • 13,452
  • 2
  • 47
  • 78

0 Answers0