@@ -52,28 +52,6 @@ unwords' ws = (foldr1 addSpace ws)
52unwords : List String -> String
52unwords : List String -> String
53unwords = pack . unwords' . map unpack
53unwords = pack . unwords' . map unpack
56−mapping : Int -> List a -> List (Int, a)
57−mapping counter [] = []
58−mapping counter (x :: xs) = (counter, x) :: mapping (counter + 1) xs
60−fromJust : Maybe Value -> Value
61−fromJust Nothing = VNULL
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 [] = []
69−getlist : (String, List (Maybe(Int, Value))) -> List (Maybe(Int, Value))
70−getlist (x, (xs)) = xs
73−outList : List (Maybe Value) -> Maybe Value
75−outList ((Just x)::xs) = Just x
77valString : List (Maybe(Int, Value)) -> Value -> (String, List (Maybe(Int, Value)))
55valString : List (Maybe(Int, Value)) -> Value -> (String, List (Maybe(Int, Value)))
78valString xs (VInt x) = ("?" ++ show (cast(length xs)+1), xs ++ [Just (cast((length xs)+1),(VInt x))])
56valString xs (VInt x) = ("?" ++ show (cast(length xs)+1), xs ++ [Just (cast((length xs)+1),(VInt x))])
79valString xs (VStr x) = ("?" ++ show (cast(length xs)+1), xs ++ [Just (cast((length xs)+1),(VStr x))])
57valString 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
155 let (csstring, newxs') = condClauseStr newxs cl in
133 let (csstring, newxs') = condClauseStr newxs cl in
156 ("UPDATE " ++ tblname ++ csstring, newxs')
134 ("UPDATE " ++ tblname ++ csstring, newxs')
160−display : (String, List (Maybe(Int, Value))) -> String
161−display (x, (xs)) = x