Where can I find a list of Scala's "magic" functions, such as apply
, unapply
, update
, +=
, etc.?
By magic-functions I mean functions which are used by some syntactic sugar of the compiler, for example
o.update(x,y) <=> o(x) = y
I googled for some combination of scala
magic
and synonyms of functions
, but I didn't find anything.
I'm not interested with the usage of magic functions in the standard library, but in which magic functions exists.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…