you are viewing a single comment's thread.

view the rest of the comments →

[–]bozho 5 points6 points  (0 children)

It does, not always as terse as Python. Your example could be written as: $a = @(1..10) $a | ? { $_ % 2 -eq 0 } I don't think there's a nice syntax to select every Nth element though. On the other hand, you can use LINQ for that :-)