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*

3
  • $\begingroup$ That depends on where the zero is going to be. E.g. the third element, the last element or some other position. But probably the pattern __ (BlankSequence[]) is what you are after. $\endgroup$ Commented May 4, 2017 at 8:30
  • $\begingroup$ 45429 but use DeleteCases. $\endgroup$ Commented May 4, 2017 at 8:34
  • 1
    $\begingroup$ Maybe not the most efficient, but incredibly convenient: data /. {_, _, 0} -> Nothing $\endgroup$ Commented May 4, 2017 at 13:17