benhj / arrow

An interpreted programming language
MIT License
23 stars 3 forks source link

Allow map_contains lookup to match on wildcard strings #22

Closed benhj closed 4 years ago

benhj commented 4 years ago

If we have

"value" -> map:"someKey";
;;; should evaluate to true
;;; Note res, could be a pod where the first member is a boolean
;;; and the second is the actual key, e.g.:
map_contains(map, "*Key") -> res;  ;;; should match

;;; retrieve if contains:
if(res:truth) {
    res:key -> theKey;
}
benhj commented 4 years ago

Done!