From 27461a400fc85180ebaa69c02003b3d387f8d120 Mon Sep 17 00:00:00 2001
From: Tom Benner
Now lets run the program.
+Now let's run the program.
4> tut:double(10). 20@@ -846,7 +846,7 @@ reverse([], [3,2,1]) => write a list manipulating function it is a good idea to check that one isn't already written for you. (see
Now lets get back to the cities and temperatures, but take a more +
Now let's get back to the cities and temperatures, but take a more structured approach this time. First let's convert the whole list to Celsius as follows and test the function:
@@ -1268,7 +1268,7 @@ map(Fun, []) ->
#Fun<erl_eval.5.123085357>
89> lists:map(Add_3, [1,2,3]).
[4,5,6]
- Now lets print out the temperatures in a list of cities (yet
+
Now let's print out the temperatures in a list of cities (yet
again):
90> Print_City = fun({City, {X, Temp}}) -> io:format("~-15w ~w ~w~n",
--
cgit v1.2.3