[clean-list] how to disambiguate records in a list comprehension ?

Isaac Gouy igouy2 at yahoo.com
Fri Apr 27 21:47:59 MEST 2007


Error [example.icl,4,comprehension]: id ambiguous selector specified


Start = [r \\ r <- rs | r.id == 3]

:: R1 = {id :: Int}
:: R2 = {id :: Int, value :: Int}

rs = [{R1|id=0}, {R1|id=2}, {R1|id=3}, {R1|id=4}, {R1|id=5}]

__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


More information about the clean-list mailing list