Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 2
    $\begingroup$ I take it that {1,0,1} should return {}? I can't imagine there's a built in function, but some combination of Split or SplitBy with Length and maybe something else should do it easily. $\endgroup$ Commented Sep 14, 2012 at 15:50
  • $\begingroup$ Yeah, I just ran into the same issue of how to deal with exact 0 values... I haven't yet decided how I want it to act. I'm going to go look at a language that has a built-in functin (LabVIEW, because that's what I know) and see how it treats that case. $\endgroup$ Commented Sep 14, 2012 at 16:07
  • $\begingroup$ This feels like a duplicate; can anyone recall what I may be thinking of? $\endgroup$ Commented Sep 14, 2012 at 16:16
  • $\begingroup$ @Mr.Wizard I've been searching for it. May be on SO? $\endgroup$ Commented Sep 14, 2012 at 16:18