|
You are here |
stuartsierra.com | ||
| | | | |
jdevuyst.blogspot.com
|
|
| | | | | Most programmers who have dabbled in Clojure are probably familiar with the threading macros -> and ->>. For readers, who aren't. Here's wha... | |
| | | | |
honza.pokorny.ca
|
|
| | | | | Thoughts of an open source developer with a theology degree. Honza Pokorný is a web developer and an armchair theologian in Halifax, Canada | |
| | | | |
ianthehenry.com
|
|
| | | | | You've probably seen this Python 101 thing before: @memoized def fib(n): if n <= 1: return n return fib(n - 1) + fib(n - 2) Leaving aside the absurdity of computing Fibonacci numbers recursively, it's a common first introduction to Python decorators and higher-order functions. fib is just a function, and memoized takes that function and returns a new function (or something with a __call__ method) that, you know, memoizes the result. Python's decorators give us a nice notation for writing this, but we cou... | |
| | | | |
async.rs
|
|
| | | |||