News for hackers. Stuff that matters.
Re:Coconut – Pythonic functional programming language by hcrisp on Thursday June 23, 2016 @02:32PM (#11963325)
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)
Re:Coconut – Pythonic functional programming language by Bromskloss on Thursday June 23, 2016 @05:55PM (#11964577)
Looks interesting. How do you tell map what function to use?
Re:Coconut – Pythonic functional programming language by hcarvalhoalves on Thursday June 23, 2016 @11:06PM (#11966003)
You probably need `compose(foo, partial(map, fn), bar)`.
Re:Coconut – Pythonic functional programming language by hcrisp on Friday June 24, 2016 @12:31AM (#11966463)
Yeah, you do this or use curried version:

    pytoolz.curried.map(fn)