prelude extension proposal

From: Sergio Antoy <>
Date: Mon, 10 Oct 2005 11:41:34 -0700

Dear Colleagues,

I'd like to propose to extend the prelude with the following functions
    allValuesOf e = findall (\x -> x=:=e)
    cuntil f x = case allValuesOf (f x) of
                   [] -> x
                   (r:_) -> cuntil f r
The first one is a simple convenience, particularly because the
command line interpreter does not accept lambda expressions.

The second one serves the same purpose as the prelude function
until, but for constrains instead of booleans.


curry mailing list
Received on Mi Okt 12 2005 - 09:57:09 CEST

This archive was generated by hypermail 2.3.0 : Do Jun 20 2024 - 07:15:07 CEST