added sds operators, timing and task deletion
[mTask.git] / gCons.icl
index 3f13a7d..a7ce132 100644 (file)
--- a/gCons.icl
+++ b/gCons.icl
@@ -37,7 +37,7 @@ consIndex{|Char|} c = toInt c
 consIndex{|String|} _ = 0
 
 generic conses a :: [a]
-conses{|CONS|} f = map CONS f
+conses{|CONS|} f = [CONS (hd f)]
 conses{|UNIT|} = [UNIT]
 conses{|PAIR|} f g = []
 conses{|EITHER|} f g = map LEFT f ++ map RIGHT g
@@ -56,4 +56,4 @@ conses{|[!!]|} _ = [[!!]]
 conses{|{}|} _ = [{}]
 conses{|{!}|} _ = [{!}]
 conses{|()|} = [()]
-
+conses{|(->)|} _ _ = [const undef]