From d62d4a33bb69cf5022e7d8c37c4970d85b261e55 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Thu, 17 Sep 2015 14:23:51 -0400 Subject: [PATCH] =?UTF-8?q?Don=E2=80=99t=20switch=20in=20uncons.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- prototype/Doubt/Stream.swift | 6 ------ 1 file changed, 6 deletions(-) diff --git a/prototype/Doubt/Stream.swift b/prototype/Doubt/Stream.swift index ff286b1fc..00787d520 100644 --- a/prototype/Doubt/Stream.swift +++ b/prototype/Doubt/Stream.swift @@ -24,12 +24,6 @@ public enum Stream: NilLiteralConvertible, SequenceType { } public var uncons: (first: A, rest: Memo)? { - switch self { - case let .Cons(first, rest): - return (first, rest.value) - default: - return nil - } return analysis(ifCons: { $0 }, ifNil: { nil }) }