Browse Source

Move emptyList to the top

Julian Ospald 4 years ago
parent
commit
162b8e109b
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      VL1.tex

+ 2
- 2
VL1.tex View File

@@ -366,12 +366,12 @@ list1 = [1, 2]
366 366
 \pause
367 367
 or by using the \emph{cons} operator \code{(:)} which takes an element and a list and produces a new list with the element prepended to the front.
368 368
 \begin{lstlisting}
369
+emptyList = []
370
+
369 371
 list2 = 1 : []
370 372
 
371 373
 -- is this really a list?
372 374
 list3 = [1, 2] == 1 : 2 : []
373
-
374
-emptyList = []
375 375
 \end{lstlisting}
376 376
 \pause
377 377
 How about something more interesting: