Search the web
Sign In
New User? Sign Up
jsolait
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Real people. Real stories. See how Yahoo! Groups impacts members worldwide.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
a couple new features   Message List  
Reply | Forward Message #243 of 411 |
I added a zip(iterable1,...) to the iter module which returns an
Iterator that will iterate over the iterable objects simulatiously
similar to python's zip() method.

e.g.

map(zip([1,2,3],[3,2,1]), function(a,b){
return "%s:%s".format(a,b);
});
will result in:
["1:3", "2:2", "3:1"]

I have also added a natural string comparison method to the strings
module which can be used to sort string items in an array.
e.g.
["jsolait 1", "jsolait 11", "jsolait 2"].sort(strings.naturalCompare)
results in:
["jsolait 1", "jsolait 2", "jsolait 11"]


Jan






Wed Jul 12, 2006 11:55 am

keyjaque
Offline Offline
Send Email Send Email

Forward
Message #243 of 411 |
Expand Messages Author Sort by Date

I added a zip(iterable1,...) to the iter module which returns an Iterator that will iterate over the iterable objects simulatiously similar to python's zip()...
Jan-Klaas Kollhof
keyjaque
Offline Send Email
Jul 12, 2006
12:16 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help