Hacker News new | ask | show | jobs
by hcrisp 3654 days ago
You don't like using pytoolz? Pseudocode:

    result = pytoolz.pipe(values, map, flatten, compact, uniq, value)
    # or
    func = pytoolz.compose(value, uniq, compact, flatten, map)
    results = func(values)
1 comments

Looks interesting. How do you tell map what function to use?
You probably need `compose(foo, partial(map, fn), bar)`.
Yeah, you do this or use curried version:

    pytoolz.curried.map(fn)