-
Notifications
You must be signed in to change notification settings - Fork 268
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Allow Setting Value Later #61
Comments
What's interesting about this suggestion is that it's already sort of available. Consider this: var names = [],
sequence = Lazy(names).map(function(name) {
var parts = name.split(' ');
return {
first: parts[0],
last: parts[1],
full: name
};
});
names.push("John Doe");
names.push("Ann Robljsakld");
sequence.toArray(); // you'll see it contains the output you suggested Which demonstrates that a I guess the missing piece would be an interface for specifying a sequence with no underlying source (i.e. without needing a reference to an empty array), or for "swapping out" one source for another. I'll think on this! |
Cool :-) I'm working on a project which needs this kind of functionality. It's a On Tue, Dec 31, 2013 at 4:31 PM, Dan Tao [email protected] wrote:
|
It'd be great to be able to create pure functional behaviors, and then later apply them to values. A jsfiddle of the below.
Something along the lines of this:
The result would be:
Suggested implementation:
The text was updated successfully, but these errors were encountered: