Filters input in parallel. This version calls fun only once per input element (at the expense of additional used memory).
See Implementation
Filters input in parallel. This version calls fun only once per input element (at the expense of additional used memory).