Skip to content

Instantly share code, notes, and snippets.

Created February 17, 2017 09:14
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 anonymous/a9e6e6743082bd2a93b1d327fbeadb6d to your computer and use it in GitHub Desktop.
Save anonymous/a9e6e6743082bd2a93b1d327fbeadb6d to your computer and use it in GitHub Desktop.
Which
func foo(bar:string):none {}
foo : none = func(bar:string) {}
foo : none = { | bar : string | }
foo:none={|bar:string|}
foo(bar : string) : none
func foo(bar : string) : none
foo(bar : string) : none {}

Roughly equivalent to Python:

def foo(bar: str) -> None: pass
@jkbbwr
Copy link

jkbbwr commented Feb 17, 2017

func foo(bar: string): none

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment