nu met en nu zonder
authorMart Lubbers <mart@martlubbers.net>
Sun, 29 May 2016 19:11:10 +0000 (21:11 +0200)
committerMart Lubbers <mart@martlubbers.net>
Sun, 29 May 2016 19:11:10 +0000 (21:11 +0200)
examples/printparse.spl

index 06b4f1f..41f1988 100644 (file)
@@ -48,7 +48,8 @@ strToInt(x) :: [Char] -> Int {
        return i*m;
 }
 
-printList(p, l) {
+//printList(p, l) :: (a -> Void) -> [a] -> Void {
+printList(p, l) :: (a -> Void) -> [a] -> Void {
     print('[');
        if(!isEmpty(l)){
                p(l.hd);