From 90cd2ee2d78b154002f8101c0377e40837c23279 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Tue, 3 Nov 2015 11:13:59 -0500 Subject: [PATCH] Nothing ever flat maps an Algorithm. --- prototype/Doubt/Algorithm.swift | 7 ------- 1 file changed, 7 deletions(-) diff --git a/prototype/Doubt/Algorithm.swift b/prototype/Doubt/Algorithm.swift index a3009cbce..64634e85e 100644 --- a/prototype/Doubt/Algorithm.swift +++ b/prototype/Doubt/Algorithm.swift @@ -33,13 +33,6 @@ public enum Algorithm { public func map(transform: Result -> Other) -> Algorithm { return analysis(ifPure: transform >>> Algorithm.Pure, ifRoll: { .Roll($0.map { $0.map(transform) }) }) } - - - // MARK: Monad - - public func flatMap(transform: Result -> Algorithm) -> Algorithm { - return analysis(ifPure: transform, ifRoll: { .Roll($0.map { $0.flatMap(transform) }) }) - } }