1
0
mirror of https://github.com/JustinSDK/dotSCAD.git synced 2025-09-25 05:51:41 +02:00
Files
dotSCAD/docs/lib3x-hashmap_len.md
Justin Lin 102d928785 update doc
2021-03-09 17:17:49 +08:00

395 B

hashmap_len

This function puts a key/value to a util/map/hashmap. It returns a new map containing the key/value.

Since: 3.0

Parameters

  • map : The map.

Examples

use <util/map/hashmap.scad>;
use <util/map/hashmap_len.scad>;

m = hashmap([["k1", 10], ["k2", 20], ["k3", 30]]);
assert(hashmap_len(m) == 3);