#2601 Type.emptyMap() ?

SlimerDude Fri 14 Apr

I use Type.emptyList() quite a lot:

Int#.emptyList

Any chance of it getting a companion Type.emptyMap()?

[Str:Int]#.emptyMap

I know it's not quite the same (as emptyList() takes an item type, not the list type), but I do miss a empty Map singleton. I'd even settle for Map.defVal.

Login or Signup to reply.