fix: Mib
This commit is contained in:
parent
7daae860fc
commit
1feb3893c5
4 changed files with 45 additions and 27 deletions
|
@ -35,10 +35,11 @@ class FunctorOp(private val term: Term, private val functorName: Term, private v
|
|||
"Arguments are not sufficiently instantiated"
|
||||
}
|
||||
|
||||
val t = applySubstitution(term, subs)
|
||||
val name = applySubstitution(functorName, subs) as Atom
|
||||
val arity = applySubstitution(functorArity, subs) as Integer
|
||||
val result = Structure(name, List(arity.value) { AnonymousVariable.create() })
|
||||
sequenceOf(Result.success(mapOf(term to result)))
|
||||
sequenceOf(Result.success(mapOf(t to result)))
|
||||
}
|
||||
|
||||
else -> throw IllegalStateException()
|
||||
|
|
Reference in a new issue