[erlang-questions] Simple multi-case

datacompboy datacompboy@REDACTED
Tue Nov 14 10:21:23 CET 2006



Guest wrote:
and the case expression should be

    case X
      of {bee,_} -> boo()
       ; {fly,_} -> jum()
    end
(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()
  end
--
--- suicide proc near\n call death\n suicide endp
_________________________________________________________
Post sent from http://www.trapexit.org



More information about the erlang-questions mailing list