mirror of
https://github.com/zaphar/ucg.git
synced 2025-07-22 18:19:54 -04:00
20 lines
379 B
Plaintext
20 lines
379 B
Plaintext
|
|
let fields = module{
|
|
tpl = NULL,
|
|
} => {
|
|
let reducer = macro(acc, field, value) => {
|
|
result = acc + [field],
|
|
};
|
|
|
|
let result = reduce reducer.result [], (mod.tpl);
|
|
};
|
|
|
|
let values = module{
|
|
tpl = NULL,
|
|
} => {
|
|
let reducer = macro(acc, field, value) => {
|
|
result = acc + [value],
|
|
};
|
|
|
|
let result = reduce reducer.result [], (mod.tpl);
|
|
}; |