Unfortunately, that doesn't fit the real world application. I'll give a bit more context.
What I have is an array of objects. Each of these objects have a version property. Each object also has a few associated special versions, like one called the official version. Then there's a method that takes an array of these objects and returns an array of these special versions, called getOfficialVersions. But not all objects have an official version, so in that case the method returns an undef for that index in the array. So I'm looking for a quick way to get the list of objects from the input list that have an undef in the array returned from getOfficialVersions.
In reply to Re^2: Array slice vs foreach and push
by chrisburel
in thread Array slice vs foreach and push
by chrisburel
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |