Wednesday | 04 DEC 2024
[ previous ]
[ next ]

Added a MAP.HAS Function

Title:
Date: 2023-06-15
Tags:  basic, hashmaps

I added a MAP.HAS function to my hashmap routines. This is just a check if the key is in the hashmap. I originally didn't implement this as getting back a null when the MAP.GET was called was fine. However for my RENDER program I wanted to have errors when something was used but wasn't in the hashmap. This required having a check for existence.

A bit dumb that I'm realizing it now but it might be useful to know when a value is truly blank versus when the value is missing. I'll need to do some work in my {JSON parsing} [I might re-implement my JSON.PARSE using hashmaps] routines to add this as well.