Skip to content

Instantly share code, notes, and snippets.

View stephenh1991's full-sized avatar
💭
🏊 🚴 🏃

Steve stephenh1991

💭
🏊 🚴 🏃
View GitHub Profile
@stephenh1991
stephenh1991 / composition_closure_currying.py
Last active January 31, 2020 22:36
Python Functional Paradigms
## Just a reminder to myself as someone new to Python how to perform basic functional paradigms :)
# composition
def f(x):
return x + 2
def g(h, x):
return h(x) * 2

Keybase proof

I hereby claim:

  • I am stephenh1991 on github.
  • I am steveh91 (https://keybase.io/steveh91) on keybase.
  • I have a public key ASDvycqQuLz2GMd9ou2UL5YupCa8Tf_wCJyNQ6cO5OSUfQo

To claim this, I am signing this object:

Below command used tags 'App' to group AMI's allowing for the --keep-previous 1 command to work and keep previous AMI's
amicleaner --full-report --mapping-key tags --mapping-values App --keep-previous 1