From 62a9b06373c62fe91f980e7d02b14fe97e7dc986 Mon Sep 17 00:00:00 2001 From: Aleksander Sadikov Date: Mon, 14 Mar 2016 04:17:24 +0100 Subject: Hints for last_elem/2 updated. --- prolog/problems/lists/last_elem_2/common.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prolog') diff --git a/prolog/problems/lists/last_elem_2/common.py b/prolog/problems/lists/last_elem_2/common.py index 9c44231..9e6576f 100644 --- a/prolog/problems/lists/last_elem_2/common.py +++ b/prolog/problems/lists/last_elem_2/common.py @@ -97,7 +97,7 @@ def hint(code, aux_code): return [{'id': 'list_returned'}] # missing/failed base case - if not prolog.engine.ask_truthTO(engine_id, 'last_elem([qQ], qQ)'): + if not prolog.engine.ask_one(engine_id, 'last_elem([qQ], qQ)'): return [{'id': 'base_case'}] # target predicate seems to always be false -- cgit v1.2.1