aboutsummaryrefslogtreecommitdiff
path: root/src/compile.c
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2025-04-21 14:54:23 -0400
committerBruce Hill <bruce@bruce-hill.com>2025-04-21 14:54:23 -0400
commitaa5578ffe8fb2a9e6d24b0077f5d7ced630b7dfa (patch)
tree2749ac2aa1a2f91bbb0b4e72bc17b29f204e57cc /src/compile.c
parent6ee5af0a16a5f1a32eb933e30d8b86ff4e691beb (diff)
Rename List.first() to List.where()
Diffstat (limited to 'src/compile.c')
-rw-r--r--src/compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compile.c b/src/compile.c
index 888a0975..02b23919 100644
--- a/src/compile.c
+++ b/src/compile.c
@@ -3215,7 +3215,7 @@ CORD compile(env_t *env, ast_t *ast)
arg_t *arg_spec = new(arg_t, .name="item", .type=item_t);
return CORD_all("List$find_value(", self, ", ", compile_arguments(env, ast, arg_spec, call->args),
", ", compile_type_info(self_value_t), ")");
- } else if (streq(call->name, "first")) {
+ } else if (streq(call->name, "where")) {
self = compile_to_pointer_depth(env, call->self, 0, call->args != NULL);
type_t *item_ptr = Type(PointerType, .pointed=item_t, .is_stack=true);
type_t *predicate_type = Type(