Kipper-Lang / Kipper

The Kipper programming language for Browsers and Node.js 🦊✨ Made at HTL Leonding & JKU Linz
https://kipper-lang.org
GNU General Public License v3.0
26 stars 4 forks source link

[Feature] Add support for arrays to `len()` #667

Closed Luna-Klatzer closed 1 month ago

Luna-Klatzer commented 1 month ago

Is there an existing proposal for this?

This feature does not exist in the latest version

Proposal

Add support for arrays to built-in function len().

Example:

print(len([1, 2, 3])); // -> "3"

Exact behaviour / changes you want

Luna-Klatzer commented 1 month ago

Implemented by #680.