DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
reverse range ruby using steps
range = 5...0 Array((range).step(-2)) ## will give 5 3 1
PREVIOUS
NEXT
Tagged:
#reverse
#range
#ruby
#steps
ADD COMMENT
Topic
COMMENT
Name
5+2 =
Submit