Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Add state-change-function support for syntax-sugar mapping #7

Merged
merged 1 commit into from
Nov 27, 2016

Conversation

inamiy
Copy link
Owner

@inamiy inamiy commented Nov 25, 2016

Ref: inamiy/ReactiveAutomaton#5

This PR will support state-changing function as follows:

let mappings: [Automaton.NextMapping] = [
  /*   Input   |    State   |  Effect   */
  /* -----------------------------------*/
    .increment | { $0 + 1 } | .empty,
    .decrement | { $0 - 1 } | .empty,
]

@inamiy inamiy merged commit 5fb8b2c into swift/3.0 Nov 27, 2016
@inamiy inamiy deleted the state-change-function-mapping branch November 27, 2016 17:52
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant