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@{functions} > arrays',
5 attrs={
6 Car={target='--carousel'},
7 functions={target='--car-fn'},
8 }},
9 },
10 {type='text', 'some helpers for operating on arrays without modifying them'},
11 {type='text', 'array.find(array, element_or_predicate)', font={size=24}},
12 {type='text', 'array.any(array, predicate)', font={size=24}},
13 {type='text', 'array.all(array, predicate)', font={size=24}},
14 {type='text', 'array.each(array, starting_index)', 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}