[Swift4] toggle() Extension of Bool in Swift 4.2+ command line as script

by ggt667
macOS ◆ xterm-256color ◆ bash 353 views

Based on this example https://youtu.be/qmI6lnxfYrk by Paul Hudson

Note with the shebang in place there is no need for $ swift main.swift, you can do plain $ ./main.swift