diff options
author | Aleksander Sadikov <aleksander.sadikov@fri.uni-lj.si> | 2016-03-14 04:38:47 +0100 |
---|---|---|
committer | Aleksander Sadikov <aleksander.sadikov@fri.uni-lj.si> | 2016-03-14 04:38:47 +0100 |
commit | 8fbf2265a82fb569d551157b5cc16b9a5746db9f (patch) | |
tree | 824090f17c182e6f9c4099bc1ac101821e71a3f8 /prolog | |
parent | 62a9b06373c62fe91f980e7d02b14fe97e7dc986 (diff) |
Hints for last_elem/2 updated.
Diffstat (limited to 'prolog')
-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 9e6576f..cb934fc 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_truthTO(engine_id, 'last_elem([q], X), is_list(X)'): + if prolog.engine.ask_truthTO(engine_id, 'last_elem([qQ], [qQ])'): # 'last_elem([qQ], X), is_list(X)' with ask_one? return [{'id': 'list_returned'}] # missing/failed base case |