lib/Str/Term.ps1
function Is-1Term ($s) { !(Is-Empty $s) } function Is-3Term ($s) { $o=$true;foreach($i in 1..3){$noTerm,$s=Is-NoTerm $s;if($noTerm){$o=$false;break}};$o } function Is-NoTerm ($s) { Is-Empty $s } function Get-Term ($s,$atMost=2) { (Trim $s) -split '\s+',$atMost } function Get-3Term ($s) { Get-Term $s 3 } |