annotate paper/src/exec_list_monad.txt @ 92:0354d3693324 default tip

Added tag paper_final for changeset 6a12eb22be8c
author Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
date Sun, 01 Mar 2015 13:08:51 +0900
parents 1181b4facaf9
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
22
fc44782929a7 Add monad in Haskell
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
1 *Main> let x = Cons 100 (Cons 200 (Cons 400 Nil))
fc44782929a7 Add monad in Haskell
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
2 *Main> let f = \x -> Cons (x+1) (Cons (x+10) (Cons (x*x) Nil))
fc44782929a7 Add monad in Haskell
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
3 *Main> x >>= f
fc44782929a7 Add monad in Haskell
Yasutaka Higa <e115763@ie.u-ryukyu.ac.jp>
parents:
diff changeset
4 Cons 101 (Cons 110 (Cons 10000 (Cons 201 (Cons 210 (Cons 40000 (Cons 401 (Cons 410 (Cons 160000 Nil))))))))