fix(muscript): use addFirst in Bind
This commit is contained in:
parent
b6e9923fcf
commit
712a0406c5
|
@ -29,7 +29,7 @@ public class Bind extends DynamicExpr {
|
|||
DCallable clb = callable.get(dataRoot).asCallable();
|
||||
return DFinal.of("<bind>", args -> {
|
||||
List<Dynamic> argsWithParameter = new LinkedList<>(args.getValue());
|
||||
argsWithParameter.add(0, param);
|
||||
argsWithParameter.addFirst(param);
|
||||
return clb.call(DFinal.of(argsWithParameter));
|
||||
}, () -> this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue