Predicate script blocks and collections?
Function Invoke-Keep { <# .SYNOPSIS Implement the keep operation on collections, including nested arrays. .DESCRIPTION Given a collection (which may contain nested arrays), apply the predicate to each element and return an array of elements where the predicate is true. .PARAMETER Data Collection of data to filter through, can be nested arrays. .PARAMETER Predicate The […]
Predicate script blocks and collections?
Function Invoke-Keep { <# .SYNOPSIS Implement the keep operation on collections, including nested arrays. .DESCRIPTION Given a collection (which may contain nested arrays), apply the predicate to each element and return an array of elements where the predicate is true. .PARAMETER Data Collection of data to filter through, can be nested arrays. .PARAMETER Predicate The […]