[mercury-users] io__foldl

Nancy Mazur Nancy.Mazur at cs.kuleuven.ac.be
Sat Nov 16 03:03:52 AEDT 2002


> Simple assignments could be: 
> - writing a predicate that returns the number of occurrences of the
>   character 'a' in a string. 
> - writing a predicate that returns the number of digits appearing in a
>   string...

as an extra hint: use either string__first_char to downsize your string
at each step, or use string__to_char_list, and work with the list of
chars... 

have fun, 
Nancy
--------------------------------------------------------------------------
mercury-users mailing list
post:  mercury-users at cs.mu.oz.au
administrative address: owner-mercury-users at cs.mu.oz.au
unsubscribe: Address: mercury-users-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-users-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the users mailing list