jemnotesversion 2 / featuring this entry or see all/search

Aug 5
Mostly from the pickaxe book.
  • Compare array[start, length] and array[start..end].
  • x.freeze prevents modification to x.
  • books.first, but also books.first(3).
  • File.open(filename).each_with_index do |line, index|.