Search code examples
language-agnosticsyntaxprogramming-languagesassociative-array

Is there a language-independent name for the symbol between a Map key and value?


I.e. is there a generic name for the : in Groovy's ['a':'1'], => in Ruby's {:a => '1'}, -> in Scala's Map('a'->'1')?


Solution

  • It appears there is no universally accepted term for this symbol, although there are a few variants with some traction listed in the other answers.