Did I find the right examples for you? yes no

All Samples(1)  |  Call(0)  |  Derive(0)  |  Import(1)

        def value_mapper(argument):
    predicate, item = argument
    item = item if isinstance(item, (tuple, list)) else (item, item)
    return apply_to_tuple(None, predicate, item=item)
        


src/p/y/pystreams-0.6/streams/stream.py   pystreams(Download)
from .iterators import seed, distinct, peek, accumulate, partly_distinct
from .poolofpools import PoolOfPools
from .utils import MaxHeapItem, filter_true, filter_false, value_mapper, \
    key_mapper, filter_keys, filter_values, make_list, int_or_none, \
    float_or_none, long_or_none, decimal_or_none, unicode_or_none