# Remove elements in an array by indexes
def deleteFromAry( ary, idxs )
cnt = 0
idxs.each { |i|
ary.delete_at( i - cnt )
cnt = cnt + 1
}
end
4 Ağustos 2007 Cumartesi
Remove elements in an array by indexes
Subscribe to:
Kayıt Yorumları (Atom)
0 Comments:
Post a Comment