摘要:
http://www.javaeye.com/topic/70348 阅读全文
摘要:
十分简洁的生成斐波那契数列: x,y = 0,1 Array.new(10) {|i| [0,1].include?(i) ? 1 : (x,y = y,x+y)&&(x+y) } #=>[1, 1, 2, 3, 5, 8, 13, 21, 34, 55] 阅读全文
摘要:
http://www.javaeye.com/topic/170683 阅读全文