Skip to content

Latest commit

 

History

History
16 lines (13 loc) · 318 Bytes

File metadata and controls

16 lines (13 loc) · 318 Bytes

map Module

Map helpers.

Functions

  • has(m {str: T}, key str) -> bool: Returns true if key exists.
  • keys(m {str: T}) -> [str]: Returns list of keys.
  • values(m {str: T}) -> [T]: Returns list of values.

Example

load map
cfg = {"env": "dev"}
if map.has(cfg, "env"):
    out(cfg["env"])