Add take function.

This commit is contained in:
Stephen Chung
2023-05-13 09:31:57 +08:00
parent d84008dda0
commit b1fbfcbc07
3 changed files with 67 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ Enhancements
------------
* Expressions involving `this` should now run slightly faster due to a dedicated `AST` node `ThisPtr`.
* A `take` function is added to the standard library to take ownership of any data (replacing with `()`) in order to avoid cloning.
Version 1.14.0