johneastman / boomerang

An interpreted programming language written in Python
https://jeastman.pythonanywhere.com/
MIT License
0 stars 0 forks source link

Add List Packing #60

Closed johneastman closed 1 year ago

johneastman commented 1 year ago

Prefix operator to encapsulate a list within a list. In lieu of a better operator, use **. For example:

**(1, 2, 3) == ((1, 2, 3),);

Useful for functions that take one parameter, and that parameter is a list.

johneastman commented 1 year ago

Commit: https://github.com/johneastman/boomerang/commit/8ea884c7aea0c045df06ddc908aee454739b3338