Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 29th, 2011  |  syntax: Erlang  |  size: 0.73 KB  |  views: 91  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  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.  
clone this paste RAW Paste Data