Skip to content

Commit

Permalink
use once to limit solutions instead of cut
Browse files Browse the repository at this point in the history
  • Loading branch information
Skgland committed Jan 4, 2024
1 parent e66e7c5 commit ea0130d
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/lib/os.pl
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,8 @@
can_be(list, Argv),
'$argv'(Argv0),
( member("--", Argv0) ->
append(Argv1, ["--"|Argv], Argv0),
\+ member("--", Argv1),
!
once(append(Argv1, ["--"|Argv], Argv0)),
\+ member("--", Argv1)
;
Argv = []
).

0 comments on commit ea0130d

Please sign in to comment.