
Untitled
By: a guest on
Jul 4th, 2012 | syntax:
None | size: 0.86 KB | hits: 11 | expires: Never
1> fridge2:start_fridge().
<0.37.0>
The contents are now:
[{bacon,44},{eggs,59}]
The contents are now:
[{bacon,43},{eggs,58}]
The contents are now:
[{bacon,43},{eggs,57}]
2> fridge2:store(milk, 47).
stored
The contents are now:
[{bacon,43},{milk,46},{eggs,56}]
The contents are now:
[{bacon,43},{milk,45},{eggs,55}]
3> fridge2:list().
[{bacon,43},{milk,45},{eggs,55}]
The contents are now:
[{bacon,43},{milk,44},{eggs,54}]
4> fridge2:unplug().
terminate
The compressor has been unplugged!
5> % nothing happens
5> fridge2:plugin().
<0.45.0>
The contents are now:
[{bacon,43},{milk,43},{eggs,53}]
6> fridge2:take(eggs).
eggs
The contents are now:
[{bacon,43},{milk,43}]
The contents are now:
[{bacon,43},{milk,43}]
The contents are now:
[{bacon,43},{milk,43}]
The contents are now:
[{bacon,43},{milk,43}]
7> fridge2:stop_fridge().
terminate
The compressor has been unplugged!
8>