def
checksum():Int
=~
(sum &0xFF
) +1 can somebody explain what this method is doing, especially "~" sign. Thanks!
~
(sum &0xFF
) +1
sum.&(
0xFF
).unary_~.+(1)
... assuming that symbol is one of -, +, !, or ~ (i.e., the standard prefix operators in C-like languages).
--
You received this message because you are subscribed to the Google Groups "scala-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to scala-user+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
PrefixExpr ::= [‘-’ | ‘+’ | ‘~’ | ‘!’] SimpleExpr