Skip to content

Commit

Permalink
Merge pull request #1796 from triska/dif_si
Browse files Browse the repository at this point in the history
ADDED: dif_si/2
  • Loading branch information
mthom authored Apr 22, 2023
2 parents 502574d + 8b7281f commit 198e925
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/lib/si.pl
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@
integer_si/1,
atomic_si/1,
list_si/1,
chars_si/1]).
chars_si/1,
dif_si/2]).

:- use_module(library(lists)).

Expand Down Expand Up @@ -64,3 +65,9 @@
chars_si(Cs) :-
list_si(Cs),
'$is_partial_string'(Cs).

dif_si(X, Y) :-
X \== Y,
( X \= Y -> true
; throw(error(instantiation_error,dif_si/2))
).

0 comments on commit 198e925

Please sign in to comment.