axle.EnrichedByteArray.scala Maven / Gradle / Ivy
The newest version!
package axle
case class EnrichedByteArray(barr: Array[Byte]) {
def ⊕(other: Array[Byte]): Array[Byte] = barr.zip(other).map(lr => (lr._1 ^ lr._2).toByte).toArray
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy