The Python snippet collection contains helper functions for Python 3.6. It includes utilities for most common data types, such as primitivies, lists, dictionaries and date objects.
Python, Function
Mutable default arguments can trip up Python beginners and veterans alike. Here's a quick workaround to deal with them.
Python, Function
Builds a list, using an iterator function and an initial seed value.
Python, List
Returns the difference between two lists, after applying the provided function to each list element of both.
Python, List
Returns a list of elements that exist in both lists, after applying the provided function to each list element of both.
Python, Function
Performs right-to-left function composition.
Python, Function
Performs left-to-right function composition.
Python, Function
Creates a function that will invoke a predicate function for the specified property on a given dictionary.
Python, Function
Curries a function.
Python, Function
Tests a value, x
, against a testing function, conditionally applying a function.
Python, Function
Invokes the provided function after ms
milliseconds.