pocketlang/tests/lang
Alexander Patel 59333177cd pk_core: implement list addition
This commit implements list addition. A new list is allocated, and
the contents of l1 and l2 are concatenated onto the list.

This is done by extending the buffer template macro to support a
`concat` operation, which given an `other` buffer, appends all
elements of the `other` buffer to the end of the `self` buffer.
Allocations are done as needed.

We implement this additional operation, since the alternative would
be to call `reserve()` for each `write()` operation, which doesn't
seem ideal.

Issue: #55
2021-06-15 20:44:10 -07:00
..
import core attributes refactored and added tests 2021-06-10 23:12:04 +05:30
basics.pk pk_core: implement list addition 2021-06-15 20:44:10 -07:00
controlflow.pk bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30
core.pk CI-workflow implemented 2021-06-16 02:57:01 +05:30
fibers.pk bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30
functions.pk bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30
import.pk bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30
toc.pk bin hex literals implemented (#72) 2021-06-16 00:24:30 +05:30