Changeset 32550 in project


Ignore:
Timestamp:
07/06/15 14:15:05 (5 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [127.0.0.1]: Deleting un-idiomatic imperative ruby example replaced with functional

File:
1 edited

Legend:

Unmodified
Added
Removed
  • wiki/chicken-for-ruby-programmers

    r31212 r32550  
    398398
    399399<enscript highlight=ruby>
    400 count = 0
    401 File.open("myfile", 'r') { |fh|
    402     count += 1 while fh.gets
    403 }
    404 puts count
     400puts IO.foreach("myfile").length
    405401</enscript>
    406402
Note: See TracChangeset for help on using the changeset viewer.