run.qontract.core.pattern.ConsumeResult.kt Maven / Gradle / Ivy
package run.qontract.core.pattern
import run.qontract.core.Result
import run.qontract.core.breadCrumb
data class ConsumeResult(val result: Result = Result.Success(), val remainder: List = emptyList()) {
constructor(patterns: List): this(remainder = patterns)
fun breadCrumb(breadCrumb: String): ConsumeResult = this.copy(result = result.breadCrumb(breadCrumb))
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy