Hi.. I recently attempted to write the following:
map (,y) xs -- invalid
This didn't work; neither did
map ((,y)) xs -- invalid
and of course
map ((,)y) xs -- wrong
doesn't do what I want.
Alternative solutions are possible, of course:
map (flip (,) y) xs -- OK
or
zip xs (repeat y) -- OK
The question: is it reasonable to expect (,y) to be a right section of
the (,) operator, or would this syntax break something (or perhaps lead
to confusing error messages)?
--KW 8-)
--
: Keith Wansbrough, MSc, BSc(Hons) (Auckland) ------------------------:
: PhD Student, Computer Laboratory, University of Cambridge, England. :
: (and recently of the University of Glasgow, Scotland. [><] ) :
: Native of Antipodean Auckland, New Zealand: 174d47' E, 36d55' S. :
: http://www.cl.cam.ac.uk/users/kw217/ mailto:[EMAIL PROTECTED] :
:---------------------------------------------------------------------: