DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR RUBY
best ruby cheat sheet
lambda
{
|
param
|
block
}
multiply
=
lambda
{
|
x
|
x
*
3
}
y
=
[
1
,
2
]
.
collect
(
&
multiply
)
# 3 , 6
Source by github.com #
PREVIOUS
NEXT
Tagged:
#ruby
#cheat
#sheet
ADD COMMENT
Topic
COMMENT
Name
8+2 =
Submit