Sunday, 14 June 2009

cool list functions

list functions:

list.zipWithIndex = (a,b,c) => (a=>1,b=>2,c=>3)
list.slice(start,end) = cuts out this part of the list
list.take(n) ::: list.drop(n) == list = get the first n elements append them to not the first n elements

No comments:

Post a comment