Commit Graph
3 Commits
Author SHA1 Message Date
Kyle Marek-Spartz edaf529598 chore: replace IO.write with IO.print and fix array spacing in map test
- Change IO.write to IO.print for output consistency in map.wren test
- Add spaces after commas in array literal [1, 2, 3] to match style guide
2014-02-15 06:34:30 +00:00
Kyle Marek-Spartz 48ef257973 feat: add List.map method with test for element transformation
Implement a `map` method on the List class that applies a given function `f` to each element, returning a new list with the transformed values. Includes a test case verifying incrementing each element by 1.
2014-02-15 05:06:29 +00:00
Kyle Marek-Spartz e690a48e45 feat: implement List concat operator + supporting Range and empty lists
Add `+` method to List class in core.wren that creates a new list by concatenating elements from both operands. Supports concatenation with Range objects and handles empty lists on either side. Includes comprehensive test cases in test/list/concat.wren covering list-list, list-range, and empty list combinations.
2014-02-14 17:09:02 +00:00