Hi,
in many programming languages I can quicky return
an entry in an Hashmap or fill (=calculate) it and return the result if
its not in the map yet;
For example in Coffeescript:
func:(x)->Cache or=calculate x
Currently my best effort in k is this:
func:{$[^r:Cache;Cache:calculate x;r]}
is there another way without having to repeat “Cache”?
Markus