X-Git-Url: https://git.martlubbers.net/?a=blobdiff_plain;f=examples%2Fexample.spl;h=b4efb27f25c05ed6a10a9941ac5958004adb639b;hb=efc7d1fda30d97e2479e0854edbf609229c5bc98;hp=6cebe905f39b6109104862e965f051a0f6c1d5b6;hpb=90e3f306b5813ff66f8249ba243a8a4220c915fe;p=cc1516.git diff --git a/examples/example.spl b/examples/example.spl index 6cebe90..b4efb27 100644 --- a/examples/example.spl +++ b/examples/example.spl @@ -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] { - while(!isEmpty (list) && list.hd % 2=0){ + while(!isEmpty (list) && list.hd % 2==0){ list=list.tl; } if(!isEmpty(list)){