Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jul 4th, 2012  |  syntax: None  |  size: 0.86 KB  |  hits: 11  |  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. 1> fridge2:start_fridge().
  2. <0.37.0>
  3. The contents are now:
  4. [{bacon,44},{eggs,59}]
  5. The contents are now:
  6. [{bacon,43},{eggs,58}]
  7. The contents are now:
  8. [{bacon,43},{eggs,57}]
  9. 2> fridge2:store(milk, 47).
  10. stored
  11. The contents are now:
  12. [{bacon,43},{milk,46},{eggs,56}]
  13. The contents are now:
  14. [{bacon,43},{milk,45},{eggs,55}]
  15. 3> fridge2:list().
  16. [{bacon,43},{milk,45},{eggs,55}]
  17. The contents are now:
  18. [{bacon,43},{milk,44},{eggs,54}]
  19. 4> fridge2:unplug().
  20. terminate
  21. The compressor has been unplugged!
  22. 5> % nothing happens
  23. 5> fridge2:plugin().
  24. <0.45.0>
  25. The contents are now:
  26. [{bacon,43},{milk,43},{eggs,53}]
  27. 6> fridge2:take(eggs).
  28. eggs
  29. The contents are now:
  30. [{bacon,43},{milk,43}]
  31. The contents are now:
  32. [{bacon,43},{milk,43}]
  33. The contents are now:
  34. [{bacon,43},{milk,43}]
  35. The contents are now:
  36. [{bacon,43},{milk,43}]
  37. 7> fridge2:stop_fridge().
  38. terminate
  39. The compressor has been unplugged!
  40. 8>