Template repo for tiny cross-platform apps that can be modified on phone, tablet or computer.
1{
2 {type='rows', default={font={size=21}, line_height=35},
3 {type='text', font={size=28}, line_height=50,
4 {'Car@{Lua Carousel} > functions@{funções} > arrays',
5 attrs={
6 Car={target='--carousel'},
7 functions={target='--car-fn'},
8 }},
9 },
10 {type='text', 'alguns auxiliares para operar em arrays sem modificá-los'},
11 {type='text', 'array.find(array, elemento_ou_predicado)', font={size=24}},
12 {type='text', 'array.any(array, predicado)', font={size=24}},
13 {type='text', 'array.all(array, predicado)', font={size=24}},
14 {type='text', 'array.each(array, indice_inicial)', font={size=24}},
15 {type='text', 'array.join(array1, array2)', font={size=24}},
16 {type='text', 'array.map(array, f)', font={size=24}},
17 {type='text', 'array.reduce(array, init, f)', font={size=24}},
18 {type='text', 'array.keep(array, f)', font={size=24}},
19 {type='text', 'array.remove(array, f)', font={size=24}},
20 }
21}