[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

List comprehensions



Original-Via: uk.ac.nsf; Fri, 25 Jan 91 07:09:49 GMT
Date: Thu, 24 Jan 91 23:42:18 EST
From: john peterson <peterson-john@cs.yale.edu>
To: haskell@cs.yale.edu
Subject: List comprehensions
Original-Sender: peterson-john@cs.yale.edu
Sender: haskell-request@cs.glasgow.ac.uk

I would also encourage the addition of a new qualifier of the form 
  pat = exp
in the list comprehension syntax.  Although I have not seen any of the
papers referenced, I assume this is the same as pat <- [exp].  This
idiom pervades the prelude; obviously this is of general use. Such an
addition would result in a more readable language and is trivial to
implement.  We can easily add this to our system (available Real Soon
Now!); why not make this extension official?

   John Peterson
   Yale Haskell Project
   peterson-john@cs.yale.edu