     
     case success(Value)
     case failure(Error)
+}
+
+extension Result {
     
     /// Creates a succesful result with an associated value.
-    public init(_ value: Value) { self = .success(value) }
+    public init(value: Value) { self = .success(value) }
     
     /// Creates a result with an associated error.
-    public init(_ error: Error) { self = .failure(error) }
+    public init(error: Error) { self = .failure(error) }
     
     /// Optional value, returned when Self is .success.
     public var value: Value? {
-     
+        
         switch self {
         case .success(let value): return value
         case .failure:            return nil

        }
    }
}

//
//  Created by Wyatt McBain on 10/21/16.
//  Copyright © 2016 ZX Ventures. All rights reserved.
//
// Borrows heavily from: https://github.com/antitypical/Result
//
// However have amended to use `Swift.Error` exclusively as opposed to NSError
// with a generic type constraint on Result in order to streamline declarations.
// Since we use 100% Swift there's really no need to account for NSError types.
//

import Foundation
