reflect improved determinism thanks to the improvements by @notoria

This commit is contained in:
Markus Triska
2020-12-22 23:55:40 +01:00
parent d290596c1d
commit 27a52ef56a
6 changed files with 16 additions and 26 deletions

View File

@@ -166,19 +166,16 @@ file_time_(File, Which, T) :-
Examples:
?- path_segments("/hello/there", Segments).
Segments = [[],"hello","there"]
; false.
Segments = [[],"hello","there"].
?- path_segments(Path, ["hello","there"]).
Path = "hello/there"
; false.
Path = "hello/there".
To obtain the platform-specific directory separator, you can use:
?- path_segments(Separator, ["",""]).
Separator = "/"
; false.
Separator = "/".
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - */
path_segments(Path, Segments) :-