Last active
November 24, 2021 19:59
-
-
Save vikingosegundo/bf5b30b23e8a2dade11c1e8e07f663d5 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
func turn (_ light:Light, _ onOrOff:Turn ) { rootHandler( .lighting(.turn(light,onOrOff)) ) } | |
func apply ( values:Light.Values, on light:Light) { rootHandler( .lighting(.apply(.values(values),on:light)) ) } | |
func increase( value :Light.Value, by inc :Light.Value.Increment, on light:Light) { rootHandler( .lighting(.increase(value,by:inc,on:light)) ) } | |
func decrease( value :Light.Value, by dec :Light.Value.Increment, on light:Light) { rootHandler( .lighting(.decrease(value,by:dec,on:light)) ) } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment