FIX: bug in syntax or std/tuples.ucg.

This commit is contained in:
Jeremy Wall 2019-02-05 10:28:04 -06:00
parent ad7f2d22a0
commit 6cb9ccd55c

View File

@ -58,7 +58,7 @@ let has_fields = module{
let fs = lib.fields{tpl=mod.tpl}.result; let fs = lib.fields{tpl=mod.tpl}.result;
let result = reduce(reducer = func (acc, f) => acc && (f in fs), true, (mod.fields)); let result = reduce(func (acc, f) => acc && (f in fs), true, mod.fields);
}; };
// Check if a field in a tuple is a given type. // Check if a field in a tuple is a given type.
@ -92,4 +92,4 @@ let field_type = module{
// The computed answer true or false. // The computed answer true or false.
let result = lib.has_fields{tpl=mod.tpl, fields=[mod.field]}.result && reduce(reducer, true, it); let result = lib.has_fields{tpl=mod.tpl, fields=[mod.field]}.result && reduce(reducer, true, it);
}; };