Slide 19
Slide 19 text
ྫɿϞφυ
let arr = [1, 2, 3].kind
.bind { [$0 * 3, $0 * 5 ].kind }.value
arr == [3, 5, 6, 10, 9, 15]
let list = List.cons(1, .cons(2, .cons(3, .nil))).kind
.bind { List.cons($0 * 3, .cons($0 * 5, .nil)).kind }
.value
list == List.cons(3, .cons(5, .cons(6,
.cons(10, .cons(9, .cons(15, .nil))))))
ܕ͕ҟͳ͍ͬͯͯɺฦΓલճͷίϯςφܕΛҡ࣋