CSC302 2011S, Class 16: Erlang (2) Overview: * Q & A on Erlang. * Lab. Admin: * Missing Friday: CF4 * Coffee and hot water in commons. * Are there questions on Assignment 6? * EC: This week's CS extra (sorry, no idea what it is). * EC: Friday's CS table. Question posted on P. * Usually you write the base case first. Why does the following work? map(F,[H|T]) -> [F(H) | map(F,T)] ; map(F, []) -> []. --- Lab * We've learned that fold works a bit backwards from how we expect. * lists:seq(LB,UB) * How would you generate the list [1,2,2,3,3,3,4,4,4,4,5,5,5,5,5]?