Skip to content

Instantly share code, notes, and snippets.

@exelotl
Created July 17, 2018 21:35
Show Gist options
  • Save exelotl/751892cb240704b5af84b29ba6ba3c39 to your computer and use it in GitHub Desktop.
Save exelotl/751892cb240704b5af84b29ba6ba3c39 to your computer and use it in GitHub Desktop.
define a `+` operator for string concatenation
proc `+`*(a:string, b:string):string = a & b
proc `+`*[T](a:string, b:T):string = a & $b
proc `+`*[T](a:T, b:string):string = $a & b
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment