use string notation as discussed on #scryer IRC
This commit is contained in:
@@ -67,14 +67,12 @@ resource_error(Resource, Context) :-
|
|||||||
% to create a list full of free variables with N length.
|
% to create a list full of free variables with N length.
|
||||||
%
|
%
|
||||||
% ```
|
% ```
|
||||||
% ?- length([a,b,c], 3).
|
% ?- length("abc", 3).
|
||||||
% true.
|
% true.
|
||||||
% ?- length([a,b,c], N).
|
% ?- length("abc", N).
|
||||||
% N = 3.
|
% N = 3.
|
||||||
% ?- length(Xs, 3).
|
% ?- length(Xs, 3).
|
||||||
% Xs = [_A, _B, _C].
|
% Xs = [_A, _B, _C].
|
||||||
% ?- length("chars", N).
|
|
||||||
% N = 5.
|
|
||||||
% ```
|
% ```
|
||||||
|
|
||||||
length(Xs0, N) :-
|
length(Xs0, N) :-
|
||||||
|
|||||||
Reference in New Issue
Block a user