Advertisement
Guest User

Untitled

a guest
May 25th, 2015
251
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.30 KB | None | 0 0
  1. print_result([H|Trace], Prev, Time) ->
  2. print_swap(Swap, H),
  3. Interval = Time + crossing_time(Swap),
  4. print_result(Trace, H, Interval).
  5.  
  6. print_swap(Swap, To) ->
  7. case To band 1 of
  8. 0 ->
  9. io:format( " ~s -->~n", [display(Swap)]);
  10. 1 ->
  11. io:format( "<-- ~s~n", [display(Swap)])
  12. end.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement