Skip to content

nth0/3 is not correct #176

@triska

Description

@triska

I tried the current definition of nth0/3 with Scryer Prolog, and get for example:

?- nth0(N, "abc", E).
   N = 0, E = a.

Expected:

?- nth0(N, "abc", E).
   N = 0, E = a
;  N = 1, E = b
;  N = 2, E = c
;  false.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions