Timeline for How do you efficiently return all of a list but one element?
Current License: CC BY-SA 3.0
5 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 25, 2012 at 22:58 | history | edited | rcollyer | CC BY-SA 3.0 | fixed code |
| Jan 25, 2012 at 22:54 | comment | added | Gary | rcollyer's message at 7:18 on the 18th appears to be missing a 0 in the mask: Pick[(data = {a, b, c, d, e, f}), {1,1,0,0,1}, 1] produces the message "Pick::incomp: "Expressions {a,b,c,d,e,f} and {1,1,0,0,1} have incompatible shapes"" | |
| Jan 18, 2012 at 22:36 | comment | added | rcollyer | @MikeHoneychurch, pretty much. But, I expected to have to perform it a lot more often than what I've shown. In review, probably not as much as I thought. | |
| Jan 18, 2012 at 22:05 | comment | added | Mike Honeychurch | is it basically just the diagonal that you want excluded @rcollyer? | |
| Jan 18, 2012 at 17:52 | history | answered | rcollyer | CC BY-SA 3.0 |