Scala has bitewise operators<p><a href="http:&#x2F;&#x2F;www.tutorialspoint.com&#x2F;scala&#x2F;scala_bitwise_operators.htm" rel="nofollow">http:&#x2F;&#x2F;www.tutorialspoint.com&#x2F;scala&#x2F;scala_bitwise_operators....</a><p>So the &quot;&lt;&lt;&quot; is easy enough to cover.<p>I do not know what the * is going, if it involves pointer something something then it may not be possible to replicate.