Jason Lung's Blog

Blog Navigation

  • Home
  • Archives
  • RSS
  • Search
  • About Me

[v] .size .length .count的差別

.size
.length
.count

http://rubyinrails.com/2014/01/15/ruby-count-vs-length-vs-size/
http://stackoverflow.com/questions/6083219/activerecord-size-vs-count
http://stackoverflow.com/questions/4550770/count-size-length-too-many-choices-in-ruby

Tweet
November 6, 2015
← 1..10 及 1...10 Tealeaf Academy C1W1 | Ruby Style | Variable Scope | Pass by value vs. Pass by reference →

© 2013 jasonlung. Powered by Logdown. Theme Frankies by Zhusee.