Think of Either/Left/Right like you think of Option/Some/None or Can/Full/Empty, except that Right doesn't have to be empty, it can carry stuff with it.
(You can use Right to denote an error condition, like None or Empty, but you don't have to.) --j On Sat, Dec 6, 2008 at 12:42 PM, Tim Perrett <[EMAIL PROTECTED]> wrote: > > Ahhhh - thats some scala Voodoo - never seen the Either construct > before! > > Thanks Jorge > > On Dec 6, 6:39 pm, "Jorge Ortiz" <[EMAIL PROTECTED]> wrote: > > Try: > > > > case "badger" :: Nil => Left(() => demo) > > > > An Either[A, B] means it can be either a Left[A] or a Right[B]. > > > > --j > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
