Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- cons (a:as) x
- | a == "+" = cons as (Elem (Sum y y') x'')
- | a == "*" = cons as (Elem (Mul y y') x'')
- | otherwise = cons as (Elem (Atom (read a::Integer)) x)
- where x' = pop x
- x'' = pop x'
- y = giveTop x
- y' = giveTop x'
Advertisement
Add Comment
Please, Sign In to add comment