properly thread functors whose first subterm is a variable in thread_goals/4
This commit is contained in:
@@ -421,7 +421,7 @@ thread_goals(Goals0, Goals1, Functor) :-
|
|||||||
|
|
||||||
thread_goals(Goals0, Goals1, Hole, Functor) :-
|
thread_goals(Goals0, Goals1, Hole, Functor) :-
|
||||||
( var(Goals0) ->
|
( var(Goals0) ->
|
||||||
Goals0 = Goals1
|
Goals1 =.. [Functor, Goals0, Hole]
|
||||||
; ( Goals0 = [G | Gs] ->
|
; ( Goals0 = [G | Gs] ->
|
||||||
( Gs == [] ->
|
( Gs == [] ->
|
||||||
Goals1 =.. [Functor, G, Hole]
|
Goals1 =.. [Functor, G, Hole]
|
||||||
|
|||||||
Reference in New Issue
Block a user