This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
import Cocoa | |
protocol Action {} | |
final class Store<State> { | |
typealias Reducer = (Action, State) -> (State, [Any]) | |
var state: State |