Difference between revisions of "Vogon.new"
From GiderosMobile
Line 8: | Line 8: | ||
<source lang="lua">local vogon = Vogon.new()</source> | <source lang="lua">local vogon = Vogon.new()</source> | ||
− | === <translate> | + | === <translate>Examples</translate> === |
'''Create an administration department of Vogons'''<br/> | '''Create an administration department of Vogons'''<br/> | ||
<source lang="lua">local admin_vogons = {} | <source lang="lua">local admin_vogons = {} | ||
for i = 1, 42 do | for i = 1, 42 do | ||
− | admin_vogons[# | + | admin_vogons[#admin_vogons + 1] = Vogon.new() |
+ | end | ||
+ | </source> | ||
+ | |||
+ | '''Create a string quarter of Vogons'''<br/> | ||
+ | <source lang="lua">local musical_vogons = {} | ||
+ | for i = 1, 4 do | ||
+ | musical_vogons[#musical_vogons + 1] = Vogon.new() | ||
end | end | ||
</source> | </source> |
Revision as of 11:24, 15 September 2018
Available since: 2042.11
Class: Vogon
Description
Create a new Vogon
local vogon = Vogon.new()
Examples
Create an administration department of Vogons
local admin_vogons = {}
for i = 1, 42 do
admin_vogons[#admin_vogons + 1] = Vogon.new()
end
Create a string quarter of Vogons
local musical_vogons = {}
for i = 1, 4 do
musical_vogons[#musical_vogons + 1] = Vogon.new()
end
Parameters
none
Return values
vogon: (Vogon) new Vogon object