map would result in a Box[Box[Long]]

-------------------------------------
Jim Wise<[email protected]> wrote:

>>
>> I can answer b) -- S.param("image").flatMap(asLong)
>>
>> asLong comes from BasicTypesHelpers.
>>
>> -Ross

One more quick question about this, more of a Scala question really:
I've noticed both here and in the examples that there is a tendency to
use flatMap() instead of map().  I understand the differences between
the two, but am not sure why flatMap is preferred when there aren't
Lists involved.  Any reason?  Aren't the two interchangeable in this
case?

Thanks,
-- 
                                Jim Wise
                                [email protected]

--

You received this message because you are subscribed to the Google Groups 
"Lift" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en.


Reply via email to