Commit 79d4915
feat: arr_fill(value, n) builtin
Create an array of n copies of any value — works with strings, ints,
floats, dicts, arrays, null. Essential for initializing fixed-size
arrays and creating batch prompt lists.
arr_fill("hello", 3) -> ["hello", "hello", "hello"]
arr_fill(0, 5) -> [0, 0, 0, 0, 0]
arr_fill(null, 4) -> [null, null, null, null]
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent c402419 commit 79d4915
1 file changed
Lines changed: 12 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2338 | 2338 | | |
2339 | 2339 | | |
2340 | 2340 | | |
2341 | | - | |
| 2341 | + | |
2342 | 2342 | | |
2343 | 2343 | | |
2344 | 2344 | | |
| |||
5321 | 5321 | | |
5322 | 5322 | | |
5323 | 5323 | | |
| 5324 | + | |
| 5325 | + | |
| 5326 | + | |
| 5327 | + | |
| 5328 | + | |
| 5329 | + | |
| 5330 | + | |
| 5331 | + | |
| 5332 | + | |
| 5333 | + | |
5324 | 5334 | | |
5325 | 5335 | | |
5326 | 5336 | | |
| |||
14517 | 14527 | | |
14518 | 14528 | | |
14519 | 14529 | | |
14520 | | - | |
| 14530 | + | |
14521 | 14531 | | |
14522 | 14532 | | |
14523 | 14533 | | |
| |||
0 commit comments