Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
16 lines (12 sloc) 399 Bytes
\begin{Exercise}[title={Map function with interfaces},difficulty=2]
\label{ex:map function interfaces}
\Question
Use the answer from exercise Q\ref{ex:map function}, but now
make it generic using interfaces. Make it at least work for
ints and strings.
\end{Exercise}
\begin{Answer}
\Question
\lstinputlisting[label=src:map,caption=A generic map function in
Go]{ex-beyond/src/map.go}
\end{Answer}
Something went wrong with that request. Please try again.