This project is archived and is in readonly mode.

#888 ✓invalid
Michael Ficarra

Proposed Function methods (wrap,partial,curry,memoize)

Reported by Michael Ficarra | April 27th, 2010 @ 04:28 PM

Many languages with first-class functions support partially applied functions (and therefore currying) and auto-memoization. I have created a patch which implements these language features as methods in the Function native.

Currently, MooTools does not provide many methods for the Function native, and I feel these would all be very helpful. If a better description of what these methods does is requested, I will post it here. If documentation is needed, I can also write that.

Comments and changes to this ticket

  • Christoph Pojer

    Christoph Pojer April 28th, 2010 @ 04:56 PM

    • State changed from “new” to “invalid”

    Thank you for suggestion. We are planning to improve and add some Function prototype methods in the future. Until then you feel free to create a plugin and upload it on GitHub and add it to the forge.

    You may also want to consider this project: http://github.com/ShiftSpace/functools

    I am not sure how many methods will be changed (if at all) but we are not likely to include functions that are not needed in MooTools Core itself. It is better to outsource functionality that is not absolutely necessary into MooTools More or the Forge.

  • Jan Kassens

    Jan Kassens August 30th, 2010 @ 08:45 PM

    • Tag changed from auto-memoization, curry, function, memoize, native, partial, wrap to curry, function, native, partial, wrap
    • Milestone order changed from “0” to “0”

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

Shared Ticket Bins

Attachments

Pages