repositories
/
cc1516.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
sem update'
[cc1516.git]
/
examples
/
example.spl
diff --git
a/examples/example.spl
b/examples/example.spl
index
6cebe90
..
b4efb27
100644
(file)
--- 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)){