Bob Nystrom
cd1bd39ce1
feat: implement list.add() with dynamic growth and add wrenPrintValue helper
...
Add the `list_add` primitive to support appending elements to lists with automatic capacity management using `LIST_MIN_CAPACITY` and `LIST_GROW_FACTOR` constants. Rename internal `valuesEqual` and `reallocate` functions to `wrenValuesEqual` and `wrenReallocate` for consistent naming, and introduce `wrenPrintValue` to handle formatted output of all value types including lists. Add a test file `test/list_add.wren` verifying basic add operations and return value behavior.
2013-11-27 02:02:10 +00:00
..
2013-11-20 02:24:58 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-13 15:10:52 +00:00
2013-11-07 15:04:25 +00:00
2013-11-13 15:10:52 +00:00
2013-11-04 05:38:58 +00:00
2013-11-26 15:52:37 +00:00
2013-11-26 15:52:37 +00:00
2013-11-24 21:38:31 +00:00
2013-11-08 01:07:32 +00:00
2013-11-08 01:07:32 +00:00
2013-11-14 01:09:47 +00:00
2013-11-14 01:09:47 +00:00
2013-11-14 01:09:47 +00:00
2013-11-20 15:20:16 +00:00
2013-11-10 05:32:57 +00:00
2013-11-09 19:38:01 +00:00
2013-11-09 19:38:01 +00:00
2013-11-23 22:55:05 +00:00
2013-11-23 22:55:05 +00:00
2013-11-23 22:55:05 +00:00
2013-11-23 22:55:05 +00:00
2013-11-06 15:47:47 +00:00
2013-11-15 02:25:28 +00:00
2013-11-06 15:47:47 +00:00
2013-11-26 15:52:37 +00:00
2013-11-13 15:10:52 +00:00
2013-11-20 02:24:58 +00:00
2013-11-26 15:52:37 +00:00
2013-11-27 02:02:10 +00:00
2013-11-24 21:38:31 +00:00
2013-11-25 03:08:46 +00:00
2013-11-26 15:52:37 +00:00
2013-11-09 19:38:01 +00:00
2013-11-09 19:38:01 +00:00
2013-11-09 19:18:27 +00:00
2013-11-14 18:27:33 +00:00
2013-11-10 19:46:13 +00:00
2013-11-01 13:57:21 +00:00
2013-11-26 15:52:37 +00:00
2013-11-06 02:22:22 +00:00
2013-11-26 15:52:37 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-13 15:10:52 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-10 05:32:57 +00:00
2013-11-20 02:24:58 +00:00
2013-11-18 17:19:03 +00:00
2013-11-18 17:19:03 +00:00
2013-11-18 17:19:03 +00:00
2013-11-17 18:04:02 +00:00
2013-10-28 13:53:51 +00:00
2013-11-05 17:57:57 +00:00
2013-11-24 05:00:47 +00:00
2013-11-24 05:00:47 +00:00
2013-11-24 18:45:07 +00:00
2013-11-06 04:38:16 +00:00
2013-11-26 15:52:37 +00:00
2013-11-09 23:42:23 +00:00
2013-11-09 23:42:23 +00:00
2013-11-09 23:42:23 +00:00
2013-10-28 14:12:39 +00:00
2013-11-06 15:47:47 +00:00
2013-11-09 19:38:01 +00:00
2013-11-23 22:55:05 +00:00
2013-11-09 19:38:01 +00:00
2013-11-09 23:42:23 +00:00
2013-11-09 19:38:01 +00:00
2013-11-18 17:19:03 +00:00