Open zth opened 5 months ago
let myDict = dict{ "key1": "k1" } switch myDict { | dict{"key1": k} => Console.log(`key1 value: ${k}`) | _ => Console.log("Miss") }
It would be efficient somehow for permanent map/set structures, but not sure for dicts oh.. maybe I forgot to think about it in JS, it can simply be done with destructuring :sweat_smile: