Sather like loop

Posted by Shugo Maeda Fri, 24 Aug 2007 13:15:00 GMT

Sather like loop is available in the SVN head.

e1 = [1,2,3,4,5].each
e2 = ["a","b","c","d","e"].each

loop do
  p [e1.next, e2.next]
end

It's cool, isn't it?

Leave a comment, View comments, View trackbacks

Your Comments.

Leave your own response

Other posts about this post.

This post has been discussed on the following web sites / blogs. If you wish to trackback to this post please use the following trackback address: http://blog.shugo.net/articles/trackback/23

Spread the word.

Shugo's Blog supports RSS (Real Simple Syndication), and Trackbacks from other blogs.

RSS feed for this post Trackback URI

Your Reply

Comment Form.

Fields denoted with a "*" are required.

You may also like to leave your email or website.