Skip to main content
added 64 characters in body
Source Link
Julian
  • 3.4k
  • 8
  • 19

PowerShell Core, 3939 32 bytes

param($a)$a=$args ' '..'~'|?{$_-notin($a|% t*y)cnotin$a} 

Try it online! Added splatting and case sensitivity

Try it online!

Inspired by colsw's answer

PowerShell Core, 39 bytes

param($a)' '..'~'|?{$_-notin($a|% t*y)} 

Try it online!

Inspired by colsw's answer

PowerShell Core, 39 32 bytes

$a=$args ' '..'~'|?{$_-cnotin$a} 

Added splatting and case sensitivity

Try it online!

Inspired by colsw's answer

deleted 5 characters in body
Source Link
Julian
  • 3.4k
  • 8
  • 19

PowerShell Core, 4139 bytes

param($a)' '..'~'|?{$_-notin("$a"|%$a|% t*y)} 

Try it online!Try it online!

Inspired by colsw's answer

PowerShell Core, 41 bytes

param($a)' '..'~'|?{$_-notin("$a"|% t*y)} 

Try it online!

Inspired by colsw's answer

PowerShell Core, 39 bytes

param($a)' '..'~'|?{$_-notin($a|% t*y)} 

Try it online!

Inspired by colsw's answer

Source Link
Julian
  • 3.4k
  • 8
  • 19

PowerShell Core, 41 bytes

param($a)' '..'~'|?{$_-notin("$a"|% t*y)} 

Try it online!

Inspired by colsw's answer