diff options
author | Camil Staps | 2016-02-02 19:24:50 +0100 |
---|---|---|
committer | Camil Staps | 2016-02-02 19:24:50 +0100 |
commit | a7d7542dc646a5fd124ef71e71ce260889f1701b (patch) | |
tree | 04ed89503bbb3cc9933273a1326a53ca724c3492 /fp1/week5/mart/Origami.icl | |
parent | week6 camil: working positioning of lines by putting empties at left and righ... (diff) |
Diffstat (limited to 'fp1/week5/mart/Origami.icl')
-rw-r--r-- | fp1/week5/mart/Origami.icl | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/fp1/week5/mart/Origami.icl b/fp1/week5/mart/Origami.icl deleted file mode 100644 index 180a119..0000000 --- a/fp1/week5/mart/Origami.icl +++ /dev/null @@ -1,16 +0,0 @@ -/**
- * Mart Lubbers, s4109503
- * Camil Staps, s4498062
- */
-
-module Origami
-
-import StdEnv
-
-sum` = foldr (+) 0
-prod` = foldr (*) 1
-flatten` = foldr (++) []
-length` = foldr (\x l=l+1) 0
-reverse` = foldl (\xs x=[x:xs]) []
-takeWhile` p = foldr (\x xs=if (p x) [x:xs] []) []
-maxList` [x:xs] = foldr max x xs
|