Created
March 22, 2018 15:38
-
-
Save shaneis/b9c786287a164c649309977b279f307f to your computer and use it in GitHub Desktop.
Both! It does both!!!
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ThingsILike = 'Coffee', 'Whiskey', 'Food', 'ToMoveItMoveIt' | ForEach-Object -Process { | |
[PSCustomObject]@{ | |
Name = $_ | |
} | |
} | |
$ThingsICanDrink = 'Coffee;$true', 'Whiskey;$true', 'Food;$false', 'Ice;"...um...both?"' | ForEach-Object -Process { | |
$Name, $CanDrink = $_ -split ';' | |
[PSCustomObject]@{ | |
Name = $Name | |
CanDrink = $CanDrink | |
} | |
} | |
$JoinParams = @{ | |
Left = $ThingsILike | |
Right = $ThingsICanDrink | |
LeftJoinProperty = 'Name' | |
RightJoinProperty = 'Name' | |
Type = 'AllInBoth' | |
Prefix = 'InRight_' | |
} | |
Join-Object @JoinParams |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment