Questions tagged as 'lua-table'

0
answers

Multidimensional array in Moon

I'm trying to insert an array inside a multidimensional ... Example: local info = { [1] = {name = Felipe, idade = 21, rua = Alvorada}, [2] = {name = Carlos, idade = 23, rua = Lima}, [3] = {name = Sabrina, idade = 19, rua = Principal} }...
asked by 24.08.2018 / 00:25
1
answer

How to reduce moon processing? or muti hash?

I have a table with several tables of 5 positions where the first two are the position in a Cartesian plane. --Table with water collors colors = {{r=15,g=94,b=156},{r=35,g=137,b=218},{r=28,g=163,b=236},{r=90,g=188,b=216},{r=116,g=204,b=244...
asked by 27.12.2017 / 18:32
0
answers

Vector ordering

I'm learning about vectors and arrays, and for a long time I can not solve a question correctly. The statement says: Given some vector, sort it sequentially (numeric). Example: Entrada:{1,2,2,3,3,4} Saída:{1,2,3,4,2,3} I've made a co...
asked by 08.07.2016 / 18:38