adaptivemd.SortedBundle¶
-
class
adaptivemd.SortedBundle(bundle, key)[source]¶ Sorted view of a bundle
Methods
__init__(bundle, key)x.__init__(…) initializes x; see help(type(x)) for signature c(cls)Return a view bundle on all entries that are instances of a class f(pattern)Return a view bundle on all entries that match a location pattern pick()Pick a random element sorted(key)Return a view bundle where all entries are sorted by a given key attribute v(fnc)Return a view bundle on all entries that are filtered by a function Attributes
allReturn a Delegator that will apply attribute and function call to all bundle elements firstobject Return the first of the sorted elements oneReturn one element from the list -
first¶ object Return the first of the sorted elements
-