Commits

Alessio Caiazza  committed bdde844

erlang intro

  • Participants
  • Parent commits a20b4f6

Comments (0)

Files changed (1)

File introduzione.tex

 	\includegraphics
 		[keepaspectratio,height=0.7\paperheight]{images/Erlang_logo}
 \end{frame}
+
+\begin{frame}
+	\frametitle{Erlang}
+	\begin{block}{Erlang was designed to help you writing system that are ...}
+	\begin{itemize}[<+->]
+		\item distributed
+		\item scalable
+		\item reliable
+		\item robust
+		\item fault tollerant
+		\item massively concurrent
+	\end{itemize}
+	\end{block}
+\end{frame}
+
+\begin{frame}[fragile]
+	\frametitle{Reversing a list in Erlang}
+\begin{block}{recursive.erl}
+\begin{otherlanguage}{english}
+\begin{lstlisting}[language=erlang]
+-module(recursive).
+-export([reverse/1]).
+
+reverse(L) -> tail_reverse(L,[]).
+
+tail_reverse([],Acc) -> Acc;
+tail_reverse([H|T],Acc) -> tail_reverse(T, [H|Acc]).
+\end{lstlisting}
+\end{otherlanguage}
+\end{block}
+\end{frame}