From be147cdaec94c73934e8185a0da8d5456eb5db5f Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 20 Mar 2016 21:38:51 +0100 Subject: Prolog: reorder lists_advanced exercises --- prolog/problems/lists_advanced/shiftright_2/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'prolog/problems/lists_advanced/shiftright_2') diff --git a/prolog/problems/lists_advanced/shiftright_2/common.py b/prolog/problems/lists_advanced/shiftright_2/common.py index b945440..fbe1b1c 100644 --- a/prolog/problems/lists_advanced/shiftright_2/common.py +++ b/prolog/problems/lists_advanced/shiftright_2/common.py @@ -6,7 +6,7 @@ import prolog.util from server.hints import Hint, HintPopup id = 114 -number = 21 +number = 20 visible = True facts = None @@ -94,7 +94,7 @@ def hint(code, aux_code): return [{'id': 'shiftleftish_solution'}] # last/2 used - if any(t.val == 'last' for t in tokens): + if any(t.val in ('last', 'last_elem') for t in tokens): return [{'id': 'last_used'}] # target predicate seems to always be false -- cgit v1.2.1