diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-07-10 13:42:58 -0400 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-07-10 13:42:58 -0400 |
| commit | 068d0e8563dab7708711e0171ba1190d6037f0c9 (patch) | |
| tree | 97797b983af875147e05ad5a0e233b1d8928c5c2 /typecheck.c | |
| parent | 10e86153a2c619d7f853ab149e451a9cc05fdb27 (diff) | |
Add array:to() to split out functionality of array:from()
Diffstat (limited to 'typecheck.c')
| -rw-r--r-- | typecheck.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/typecheck.c b/typecheck.c index 5cc9d664..43e384f4 100644 --- a/typecheck.c +++ b/typecheck.c @@ -670,6 +670,7 @@ type_t *get_type(env_t *env, ast_t *ast) else if (streq(call->name, "sample")) return self_value_t; else if (streq(call->name, "clear")) return Type(VoidType); else if (streq(call->name, "from")) return self_value_t; + else if (streq(call->name, "to")) return self_value_t; else if (streq(call->name, "by")) return self_value_t; else if (streq(call->name, "reversed")) return self_value_t; else if (streq(call->name, "heapify")) return Type(VoidType); |
