Update snippet descriptions

This commit is contained in:
Isabelle Viktoria Maciohsek
2020-11-02 19:27:07 +02:00
parent c469b67f0b
commit a2cd6db3b0
22 changed files with 67 additions and 64 deletions

View File

@ -1,6 +1,6 @@
---
title: compose
tags: function,intermediate
tags: function,advanced
---
Performs right-to-left function composition.
@ -19,6 +19,5 @@ def compose(*fns):
add5 = lambda x: x + 5
multiply = lambda x, y: x * y
multiply_and_add_5 = compose(add5, multiply)
multiply_and_add_5(5, 2) # 15
```