|
|
|
|
|
by stephengillie
3643 days ago
|
|
How about code that's closer to NLP? Using my Powershell module, this creates a Powershell module that loads a Powershell Filter that does FizzBuzz: New-Module FizzBuzz.ps1 (New-Function Filter-FizzBuzz (New-FunctionStatement If -not _ Modulus 15 'return "FizzBuzz"' (New-FunctionStatement ElseIf -not _ Modulus 5 'return "Fizz"' (New-FunctionStatement ElseIf -not _ Modulus 3 'return "Buzz"' 'return $_' ) ) ) -Filter) And that command's output:
https://github.com/Gilgamech/Main/blob/master/FizzBuzz.ps1 |
|