Fixed bug in list_set and arg order

This commit is contained in:
Adrian Mariano
2019-06-28 18:26:05 -04:00
parent d64b836e8b
commit 48b154b9f8
2 changed files with 5 additions and 5 deletions

View File

@@ -25,7 +25,7 @@ function struct_set(struct, keyword, value=undef, grow=true) =
let(ind=search([keyword],struct,1,0)[0])
(ind==[] ? assert(grow,str("Unknown keyword \"",keyword))
concat(struct, [[keyword,value]]) :
list_set([ind], [[keyword,value]],struct)) :
list_set(struct, [ind], [[keyword,value]])) :
_parse_pairs(struct,keyword,grow);
function _parse_pairs(spec, input, grow=true, index=0, result=undef) =