This question already has an answer here:
I stumbled upon this code by Leonid Shifrin. He uses
Sequence to create void or non-existent output. I was wondering whether this is really the best way to generate non-existent output in that way? What are alternatives? I was looking for a function named Void or something, but it doesn't exist?
mylist = Range[Range]; oddSublists[x_List] := Map[If[EvenQ[Count[#, _?OddQ]], # /. # -> Sequence, #] &, x]; oddSublists[mylist]