This website requires JavaScript.
Explore
Help
Sign In
mirror
/
RosettaCodeData
mirror of
https://github.com/acmeism/RosettaCodeData.git
Watch
1
Star
0
Fork
You've already forked RosettaCodeData
0
Code
Issues
Packages
Projects
Releases
Wiki
Activity
main
RosettaCodeData
/
Task
/
Call-a-function
/
Ruby
/
call-a-function-5.rb
4 lines
104 B
Ruby
Raw
Permalink
Blame
History
def
foo
(
id
:
0
,
name
:"
"
,
age
:
0
)
p
[
id
,
name
,
age
]
end
foo
(
age
:
22
,
name
:"
Tom
"
)
#=> [0, "Tom", 22]
Reference in New Issue
View Git Blame
Copy Permalink