DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
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
COMMENT
Name
2+9 =
Submit