mirror of
https://github.com/revarbat/BOSL2.git
synced 2025-08-29 13:20:03 +02:00
Fixed bug in list_set and arg order
This commit is contained in:
@@ -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) =
|
||||
|
Reference in New Issue
Block a user