]> Repositorios git - scryer-prolog.git/commitdiff
remove nth1/3, which is now provided by library(lists)
authorMarkus Triska <[email protected]>
Wed, 24 Aug 2022 22:03:30 +0000 (00:03 +0200)
committerMark Thom <[email protected]>
Thu, 27 Oct 2022 05:36:07 +0000 (23:36 -0600)
src/lib/simplex.pl

index 9522dab666c8c0fb9906ebb5210dbbfa6e9ba780..001571a85f0e09119aeec6b1d5834c627345d138 100644 (file)
@@ -1344,10 +1344,6 @@ print_row(R) :- maplist(print_row_, R), nl.
 
 print_row_(N) :- format("~w ", [N]).
 
-nth1(N, Es, E) :-
-        N1 is N - 1,
-        nth0(N1, Es, E).
-
 %?- transportation([1,1], [1,1], [[1,1],[1,1]], Ms).
 
 %?- transportation([12,7,14], [3,15,9,6], [[20,50,10,60],[70,40,60,30],[40,80,70,40]], Ms).