Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
Ruby custom inject
# Put your solution there puts ([1, 2, 3].custom_inject([4]) { |a, e| a << e * 2 }).to_s # => [4, 2, 4, 6] puts ([2, 3, 4].custom_inject([]) { |a, e| a << e + 1 }).to_s # => [3, 4, 5]
run
|
edit
|
history
|
help
0
soncita
Hex Color Reader (Ruby)
variables output
3.4.0 / 3.5.2 / 3.5.1 / 3.6.1 / 3.6.5.#
IS_IP?
Ruby
piramid
string orperations lecture and print
comments
variables 1