| Author |
Comment/Response |
yehuda ben-shimol
|
05/13/08 4:12pm
Hi,
The new Pick function does a better work
A = {1, 0, 1, 0, 0, 1}
B = {2, 3, 4, 6, 9, 134}
Pick[B, A, 1]
if you need a more general condition you can use
Pick[B, A, _?(# > 0 &)]
best
yehuda
URL: , |
|