Gists
Share and discover code snippets55 gists
List comprehension filter
List comprehensions with a conditional clause let you create a new list by filtering elements from an existing iterable based on a boolean condition.
Memoize function
A memoize function caches the results of expensive function calls to avoid recomputation when the same inputs occur again.
Flatten list of lists
This snippet flattens a list of lists into a single list using a list comprehension.
Nice, memoization really cleans up Fibonacci. What language do you usually write it in?