mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-13 17:25:29 +03:00
6d96341776
Rather than returning a complete list of results, return a pair of the first result, and a continuation. The continuation explains how to continue the search if the given result is deemed unacceptable (either on encountering an error somewhere, or just if the caller wants the next result). This means we don't search needlessly if we're only looking for the first result. Fixes #228
11 lines
133 B
Plaintext
11 lines
133 B
Plaintext
:gd 7 my_cong
|
|
:gd 9 my_curry
|
|
:gd 11 my_uncurry
|
|
:gd 13 append
|
|
:gd 15 lappend
|
|
:gd 17 zipWith
|
|
:gd 29 lookup
|
|
:gd 35 foo
|
|
:t my_uncurry
|
|
:q
|