tasks a-s
This commit is contained in:
parent
47bf37c096
commit
b83f433714
12433 changed files with 156208 additions and 123 deletions
8
Task/Named-parameters/Lua/named-parameters.lua
Normal file
8
Task/Named-parameters/Lua/named-parameters.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
function CreatePet(options)
|
||||
local name=options.name
|
||||
local species=options.species
|
||||
local breed=options.breed
|
||||
print('Created a '..breed..' '..species..' named '..name)
|
||||
end
|
||||
CreatePet{name='Rex',species='Dog',breed='Irish Setter'}
|
||||
--position does not matter here.
|
||||
Loading…
Add table
Add a link
Reference in a new issue