Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR RUBY

* 16**index position in ruby

Array.new(3){ |index| index ** 2 }
# => [0, 1, 4]
Source by docs.ruby-lang.org #
 
PREVIOUS NEXT
Tagged: #position #ruby
ADD COMMENT
Topic
Name
6+2 =