[m-dev.] feature request -- empty/1 pred in string library

Simon Taylor stayl at cs.mu.OZ.AU
Wed Mar 26 09:58:31 AEDT 2003


On 26-Mar-2003, Douglas Auclair <dauclair at msn.com> wrote:
> I was doing some programming with strings and was surprised to find that 
> the string library does not have an empty/1 semideterministic predicate.  
> This would be especially useful in higher-order programming:
> 
> Content = filter(isnt(empty), ListOfStrings).

Content = filter(isnt(builtin__unify("")), ListOfStrings).

Simon.
--------------------------------------------------------------------------
mercury-developers mailing list
Post messages to:       mercury-developers at cs.mu.oz.au
Administrative Queries: owner-mercury-developers at cs.mu.oz.au
Subscriptions:          mercury-developers-request at cs.mu.oz.au
--------------------------------------------------------------------------



More information about the developers mailing list