Skip to content

Instantly share code, notes, and snippets.

@KinoAR
Last active September 29, 2019 20:33
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 KinoAR/a3136f81b503f0d583601465378ac2f3 to your computer and use it in GitHub Desktop.
Save KinoAR/a3136f81b503f0d583601465378ac2f3 to your computer and use it in GitHub Desktop.
Function composabiltiy in Python
# Kino Rose - NierPixel - https://nierpixel.com/
# Composing Functions
def add(num_one:int, num_two:int)->int:
return num_one + num_two
def multiply(num_one:int, num_two:int)->int:
return num_one * num_two
# Three Times Five Composed
three_times_five = multiply(add(1, 2), 5) # 15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment