commonMain.it.unibo.tuprolog.solve.stdlib.function.BitwiseAnd.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of solve-jvm Show documentation
Show all versions of solve-jvm Show documentation
Resolution-agnostic API for logic solvers
package it.unibo.tuprolog.solve.stdlib.function
import it.unibo.tuprolog.core.Integer
import it.unibo.tuprolog.core.Numeric
import it.unibo.tuprolog.solve.ExecutionContext
import it.unibo.tuprolog.solve.function.IntegersBinaryMathFunction
/**
* Implementation of `'/\'/2` arithmetic functor
*
* @author Enrico
*/
object BitwiseAnd : IntegersBinaryMathFunction("/\\") {
override fun mathFunction(
integer1: Integer,
integer2: Integer,
context: ExecutionContext,
): Numeric = Numeric.of(integer1.value.and(integer2.value))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy