up
authorMart Lubbers <mart@martlubbers.net>
Thu, 17 Mar 2016 12:49:32 +0000 (13:49 +0100)
committerMart Lubbers <mart@martlubbers.net>
Thu, 17 Mar 2016 12:49:32 +0000 (13:49 +0100)
examples/example.spl

index 6cebe90..b4efb27 100644 (file)
@@ -84,7 +84,7 @@ append(l1, l2) :: [t] [t] -> [t] {
 
 //square the odd numbers in a list and remove the even members
 squareOddNumbers(list) :: [Int] -> [Int] {
 
 //square the odd numbers in a list and remove the even members
 squareOddNumbers(list) :: [Int] -> [Int] {
-       while(!isEmpty (list) && list.hd % 2=0){
+       while(!isEmpty (list) && list.hd % 2==0){
                list=list.tl;
        }
        if(!isEmpty(list)){
                list=list.tl;
        }
        if(!isEmpty(list)){