From e989c8aac5d589ea0a8878b5b63db454a86687d5 Mon Sep 17 00:00:00 2001 From: Rob Rix Date: Mon, 21 Sep 2015 15:22:14 -0400 Subject: [PATCH] Prism & its concatenation are public. --- prototype/Doubt/Prism.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/prototype/Doubt/Prism.swift b/prototype/Doubt/Prism.swift index f9d5ecd78..6d55468ec 100644 --- a/prototype/Doubt/Prism.swift +++ b/prototype/Doubt/Prism.swift @@ -1,4 +1,4 @@ -struct Prism { +public struct Prism { let forward: From -> To? let backward: To -> From } @@ -9,6 +9,6 @@ extension Dictionary { } } -func >>> (left: Prism, right: Prism) -> Prism { +public func >>> (left: Prism, right: Prism) -> Prism { return Prism(forward: { left.forward($0).flatMap(right.forward) }, backward: right.backward >>> left.backward) }