@@ -52,28 +52,6 @@ unwords' ws = (foldr1 addSpace ws)
5252unwords : List String -> String
5353unwords = pack . unwords' . map unpack
5454
55−
56−mapping : Int -> List a -> List (Int, a)
57−mapping counter [] = []
58−mapping counter (x :: xs) = (counter, x) :: mapping (counter + 1) xs
59−
60−fromJust : Maybe Value -> Value
61−fromJust Nothing = VNULL
62−fromJust (Just x) = x
63−
64−popintoList : Maybe Value -> List (Maybe Value) -> List (Maybe Value)
65−popintoList (Just x) [] = [(Just x)]
66−popintoList (Just (x)) ((Just x) :: xs) = (popintoList (Just x) xs)
67−popintoList Nothing [] = []
68−
69−getlist : (String, List (Maybe(Int, Value))) -> List (Maybe(Int, Value))
70−getlist (x, (xs)) = xs
71−
72−
73−outList : List (Maybe Value) -> Maybe Value
74−outList [] = Nothing
75−outList ((Just x)::xs) = Just x
76−
7755valString : List (Maybe(Int, Value)) -> Value -> (String, List (Maybe(Int, Value)))
7856valString xs (VInt x) = ("?" ++ show (cast(length xs)+1), xs ++ [Just (cast((length xs)+1),(VInt x))])
7957valString xs (VStr x) = ("?" ++ show (cast(length xs)+1), xs ++ [Just (cast((length xs)+1),(VStr x))])
@@ -155,9 +133,4 @@ evalSQL xs (UPDATE sql cl) = let (tblname, newxs) = evalSQL xs sql in
155133 let (csstring, newxs') = condClauseStr newxs cl in
156134 ("UPDATE " ++ tblname ++ csstring, newxs')
157135
158−
159−
160−display : (String, List (Maybe(Int, Value))) -> String
161−display (x, (xs)) = x
162−
163136