Changeset 29941 in project


Ignore:
Timestamp:
10/22/13 12:59:26 (8 years ago)
Author:
svnwiki
Message:

Anonymous wiki edit for IP [134.61.186.46]: In Ruby, you can also use even?. Makes it even easier to translate :)

File:
1 edited

Legend:

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

    r29170 r29941  
    559559  3
    560560  4
    561   #;6> ;; [1, 2, 3, 4, 5, 6].select{|x| (x % 2).zero? }
     561  #;6> ;; [1, 2, 3, 4, 5, 6].select{|x| x.even? }
    562562  (filter even? '(1 2 3 4 5 6))
    563563  (2 4 6)
Note: See TracChangeset for help on using the changeset viewer.