Advertisement
Guest User

Untitled

a guest
Oct 29th, 2011
166
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Erlang 0.73 KB | None | 0 0
  1. -module(test).
  2. -export([t_w/0, t_wo/0,
  3.          t_w/1, t_wo/1,
  4.          t_w/2, t_wo/2,
  5.          t_w/3, t_wo/3]).
  6.  
  7. t_w() ->
  8.   some:method(),
  9.   some:other_method().
  10.  
  11. t_wo() ->
  12.   some:other_method().
  13.  
  14. t_w(A) ->
  15.   some:method(),
  16.   case A of
  17.     a ->
  18.       some:other_method()
  19.   end.
  20.  
  21. t_wo(A) ->
  22.   case A of
  23.     a ->
  24.       some:other_method()
  25.   end.
  26.  
  27. t_w(A,B) ->
  28.   some:method(),
  29.   case {A,B} of
  30.      {a,b} ->
  31.       some:other_method()
  32.   end.
  33.  
  34. t_wo(A,B) ->
  35.   case {A,B} of
  36.      {a,b} ->
  37.       some:other_method()
  38.   end.
  39.  
  40. t_w(A,B,C) ->
  41.   some:method(),
  42.   case {A,B,C} of
  43.      {a,b,c} ->
  44.       some:other_method()
  45.   end.
  46.  
  47. t_wo(A,B,C) ->
  48.   case {A,B,C} of
  49.      {a,b,c} ->
  50.       some:other_method()
  51.   end.
  52.  
  53.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement