niyaznigmatullin

Untitled

Jun 5th, 2014
259
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. cons (a:as) x
  2.           | a == "+" = cons as (Elem (Sum y y') x'')  
  3.        | a == "*" = cons as (Elem (Mul y y') x'')
  4.         | otherwise = cons as (Elem (Atom (read a::Integer)) x)  
  5.           where x' = pop x
  6.                x'' = pop x'
  7.                 y = giveTop x
  8.                 y' = giveTop x'
Advertisement
Add Comment
Please, Sign In to add comment