[erlang-questions] Simple multi-case

datacompboy <>
Tue Nov 14 10:21:23 CET 2006

Guest wrote:
and the case expression should be

    case X
      of {bee,_} -> boo()
       ; {fly,_} -> jum()
(end of quote)

hmmm... I think, that also good idea. But not return {bee, X}  / {fly, X} but have fun that map X to bee/fly. then,
  case getType(X) of
    bee -> boo();
    fly -> jum()
--- suicide proc near\n call death\n suicide endp
Post sent from http://www.trapexit.org

More information about the erlang-questions mailing list