Guest User

Untitled

a guest
Apr 21st, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module Main where
  2.  
  3. import Control.Monad.State
  4.  
  5. last'
  6.  | [a]    <- get = a
  7.  | (x:xs) <- get = evalState last' xs
  8.  
  9. main = do
  10.   print $ evalState last' [1..10]
Add Comment
Please, Sign In to add comment