You can write your own operators, looking the source for things can give you good inspiration on how https://github.com/nim-lang/Nim/blob/version-2-2/lib/pure/collections/tables.nim #L316 This blob is very full, the actual implementation of the operator is the last line after the runnableexample