All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.it.unibo.tuprolog.solve.flags.FlagsUtils.kt Maven / Gradle / Ivy

@file:JvmName("FlagsUtils")

package it.unibo.tuprolog.solve.flags

import it.unibo.tuprolog.core.Term
import kotlin.jvm.JvmName

fun  flag(
    notableFlag: T,
    f: T.() -> Term,
): Pair = notableFlag.let { it.name to it.f() }

operator fun  T.invoke(f: T.() -> Term): Pair = flag(this, f)




© 2015 - 2025 Weber Informatics LLC | Privacy Policy