Hi again,

With our new knowledge of snoc (thanks!) we try to build ourself one
operator:

 (<*>) :: [a] -> a -> [a]
 xs <*> x = xs ++ [x]

But, why can't I do something like this:

 prev (ListElem (xs<*>x,ys)) = ListElem (xs, x:ys)

It works ok with (:) ..

Regards,
cees-bart breunesse
xander van wiggen



Reply via email to