Last time I showed a brute force way to find the pairs of numbers in an array that would sum to a given value. This time I have a more elegant way to find pairs.
function get-pairs1 {
[CmdletBinding()]
param (
[int[]]$iarray,
[int]$value
) … Read the full text.