elemPos' _ [] = -1 elemPos' x ((val,pos):vps) | x == val = pos | otherwise = elemPos' x vps f x y z = (x == chr y) == z add_c x y = x + y add_t(x,y) = x + y fromToman 'I' = 1 fromRoman 'V' = 5 fromRoman 'X' = 10 p 1 (x:xs) = 10