Timeline for Is there a Break[] equivalent for short-circuiting in Table?
Current License: CC BY-SA 3.0
12 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Apr 21, 2015 at 19:32 | history | edited | Mr.Wizard |
edited tags
|
|
Jan 28, 2013 at 18:57 | comment | added | Mr.Wizard |
Andrew, thanks for the Accept. By the way, I did not state it explicitly in my answer but you can use Return[Null, Table] or the equivalent Return[,Table] to get behavior similar to Break without the syntax error highlighting.
|
|
Jan 28, 2013 at 15:43 | vote | accept | Andrew | ||
Jan 27, 2013 at 7:47 | history | tweeted | twitter.com/#!/StackMma/status/295437857911357440 | ||
Jan 27, 2013 at 1:50 | history | edited | m_goldberg | CC BY-SA 3.0 |
Improved code formatting
|
Jan 26, 2013 at 22:38 | comment | added | Daniel Lichtblau |
Could use Scan to go over the table, and Return or Throw to exit on condition. If the latter, enclose the Scan in a Catch .
|
|
Jan 26, 2013 at 18:13 | comment | added | Leonid Shifrin |
If you want to keep the results accumulated by Table so far, have a look at my implementation of abortable table here. It can be easily modified to work with Break or any other custom form of interruption, rather than Abort[] .
|
|
Jan 26, 2013 at 18:07 | answer | added | Mr.Wizard | timeline score: 23 | |
Jan 26, 2013 at 17:45 | history | edited | Andrew | CC BY-SA 3.0 |
clarified question
|
Jan 26, 2013 at 17:44 | answer | added | Jens | timeline score: 3 | |
Jan 26, 2013 at 17:33 | comment | added | Jens |
This would work: Map[Print, First@Split@list]
|
|
Jan 26, 2013 at 17:28 | history | asked | Andrew | CC BY-SA 3.0 |