projects
/
lambda.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bfba652
)
(no commit message)
author
chris
<chris@web>
Sun, 15 Mar 2015 17:29:39 +0000
(13:29 -0400)
committer
Linux User
<ikiwiki@localhost.members.linode.com>
Sun, 15 Mar 2015 17:29:39 +0000
(13:29 -0400)
exercises/_assignment6.mdwn
patch
|
blob
|
history
diff --git
a/exercises/_assignment6.mdwn
b/exercises/_assignment6.mdwn
index
91566c9
..
cd9db08
100644
(file)
--- a/
exercises/_assignment6.mdwn
+++ b/
exercises/_assignment6.mdwn
@@
-174,15
+174,15
@@
is `\p.[p]`, and the composition operator is
Sanity check:
- f p = [
x, x
+1]
- s q = [
x*x, x+x
]
+ f p = [
p, p
+1]
+ s q = [
q*q, q+q
]
>=> f s 7 = [49, 14, 64, 16]
3. Do the same for zippy lists. That is, you need to find a
composition operator such that
-
f p = [x, x
+1]
-
s q = [x*x, x+x
]
- >=> f s 7 = [49, 64]
+
f p = [p, p
+1]
+
s q = [q*q, q+q
]
+
>=> f s 7 = [49, 64]
and then prove it obeys the monad laws.