Add mapcar builtin, more tests, fixes
This commit is contained in:
@@ -27,7 +27,7 @@ struct ucl_object *ucl_special_let(struct ucl_state *state, struct ucl_object *a
|
||||
ucl_state_put(let_state, sym->symbol, value);
|
||||
}
|
||||
|
||||
struct ucl_object *result = ucl_progn(state, expressions);
|
||||
struct ucl_object *result = ucl_progn(let_state, expressions);
|
||||
ucl_state_delete(let_state);
|
||||
return result;
|
||||
}
|
||||
@@ -95,7 +95,7 @@ struct ucl_object *ucl_special_setq(struct ucl_state *state, struct ucl_object *
|
||||
|
||||
ucl_state_put(root_state, sym->symbol, value);
|
||||
|
||||
return sym;
|
||||
return value;
|
||||
}
|
||||
|
||||
struct ucl_object *ucl_special_progn(struct ucl_state *state, struct ucl_object *args) {
|
||||
|
||||
Reference in New Issue
Block a user