[mercury-users] List comprehensions?
Terrence Brannon
princepawn at earthlink.net
Sat Apr 28 14:18:15 AEST 2001
Following up on O'Keefe's mention of Clean, I saw the following
example:
The list comprehensions in the functional programming language Clean
are a very compact and powerful way to express list manipulation. For
example the square of all integers from 1 to 10 that are not dividable
by three are computed by the program:
Start = [n*n \\ n <- [1..10] | n rem 3 <> 0]
Is this possible in Mercury? I would think that any deductive
capabilities in a purely functional language would also be available
in a functional-logic hybrid.
--------------------------------------------------------------------------
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