Files
modeling-app/rust/kcl-lib/tests/array_elem_push_fail/unparsed.snap
Adam Chalmers 50f8131d83 Kwargs: map and reduce (#6480)
Migrate array's `map`, `reduce` and `push` functions to use keyword arguments.
2025-04-25 19:09:03 -05:00

8 lines
168 B
Plaintext

---
source: kcl-lib/src/simulation_tests.rs
description: Result of unparsing array_elem_push_fail.kcl
---
arr = [1, 2, 3]
pushedArr = push(arr, item = 4)
fail = arr[3]