| Author |
Comment/Response |
Zach
|
08/25/10 9:26pm
The mathematica documentation says negative indexes count from the bottom of a tree up, so Level[{a, {b, {{c, d}, e}, f}},{-1}] is a,b,c,d,e,f,q. This makes sense. But when i ask for {-2}, it only gives second level results that contain unique elements. It gives {a,q},{c,d}. It excludes all the other sublists because they include c,d. Yet the sublist {{c,d},e} is on the second level from e. Is this how the algorithm for negative indexes always work?
URL: , |
|