Those operators are not built-in to the language. Predef has an
implicit that can wrap anything in an ArrowAssoc instance, and then
its -> and → methods return a Tuple2[A, B] which can be inserted into
a Map[A, B]. You could just as easily define a new one to support
Map("a" ♥ 1). Scalable language FTW.
Tony Bibbs
unread,
Jan 27, 2011, 3:47:06 PM1/27/11
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to iowa-scala-...@googlegroups.com
Nerds.
Of course, with this group, it's a term of endearment.