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

17 lines
395 B
Markdown

# hashmap_len
This function puts a key/value to a [util/map/hashmap](https://openhome.cc/eGossip/OpenSCAD/lib3x-hashmap.html). 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);