Companion

object Companion

Functions

Link copied to clipboard
fun enforcingSignature(supportedSignature: Signature, uncheckedPrimitive: Primitive): Primitive

fun <C : ExecutionContext> enforcingSignature(supportedSignature: Signature, uncheckedPrimitive: (Solve.Request<C>) -> Sequence<Solve.Response>): Primitive

Creates a new Primitive, behaving exactly as given uncheckedPrimitive, but accepting only provided supportedSignature as Solve.Request signature, throwing IllegalArgumentException otherwise

Link copied to clipboard
fun of(function: (Solve.Request<ExecutionContext>) -> Sequence<Solve.Response>): Primitive