diff options
author | Aleksander Sadikov <aleksander.sadikov@fri.uni-lj.si> | 2016-03-14 05:00:38 +0100 |
---|---|---|
committer | Aleksander Sadikov <aleksander.sadikov@fri.uni-lj.si> | 2016-03-14 05:00:38 +0100 |
commit | 04f1479f94cd96754b4befbe3a176622631f1941 (patch) | |
tree | 06b5a239d01dbb297b6d5122d6d82b52bfcf2e17 | |
parent | 9f90ae6885b4ce454e2b7e037b637183a175913f (diff) |
Hints for last_elem/2 updated.
-rw-r--r-- | prolog/problems/lists/last_elem_2/common.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/prolog/problems/lists/last_elem_2/common.py b/prolog/problems/lists/last_elem_2/common.py index 81192ba..1dd3c82 100644 --- a/prolog/problems/lists/last_elem_2/common.py +++ b/prolog/problems/lists/last_elem_2/common.py @@ -93,7 +93,7 @@ def hint(code, aux_code): return [{'id': '[]_should_not_succeed'}] # returns a list, not an element as required - if prolog.engine.ask_one(engine_id, 'last_elem([qQ], X), is_list(X)'): # 'last_elem([qQ], [qQ])' with ask_one? + if prolog.engine.ask_one(engine_id, 'last_elem([qQ], [qQ])'): # 'last_elem([qQ], X), is_list(X)' with ask_one? return [{'id': 'list_returned'}] # missing/failed base case |