From 30824adc5ee4b97e58038fb2e244548255e19ab1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Ankarstr=C3=B6m?= Date: Sun, 3 Apr 2022 01:43:34 +0200 Subject: Rename last_episode/1 to episode_count/1. --- pl/episode_data.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'pl') diff --git a/pl/episode_data.pl b/pl/episode_data.pl index f71e2cb..1d8fdef 100644 --- a/pl/episode_data.pl +++ b/pl/episode_data.pl @@ -1,5 +1,5 @@ :- module(episode_data, [retract_episode/1, - last_episode/1, + episode_count/1, lookup_episode/3, lookup_episode_local/3, lookup_episode_remote/3]). @@ -23,10 +23,10 @@ detach :- % Interface. -last_episode(Ep) :- +episode_count(N) :- ensure, setof(E, N^D^lookup_episode_local(E,N,D), Es), - last(Es, Ep). + last(Es, N). lookup_episode(Ep, Name, Data) :- lookup_episode_local(Ep, Name, Data), !. lookup_episode(Ep, Name, Data) :- lookup_episode_remote(Ep, Name, Data). -- cgit v1.2.3