bag package

Subpackages

Module contents

bag library.

bag.dict_subset(adict, predicate)[source]

Return a dict that is a subset of adict using a filter function.

The signature of the filter is: predicate(key, val) -> bool

bag.first(iterable)[source]

Return the first object in iterable.