Skip to content

Instantly share code, notes, and snippets.

@peterkos
Created September 1, 2021 17:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peterkos/0776ecb5156251bb929faf4dc9261557 to your computer and use it in GitHub Desktop.
Save peterkos/0776ecb5156251bb929faf4dc9261557 to your computer and use it in GitHub Desktop.
todo: write +^n in Swift
var i = 0
i++ // 1
i = 0
i++++ // 4
i = 0
i++++++++++++ // 12
var i = 0
i-- // -1
i = 0
i---- // -4
i = 0
i------------ // -12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment