Skip to content

Simple rule #26

Answered by amogorkon
renemkr asked this question in Q&A
Apr 22, 2022 · 1 comments · 1 reply
Discussion options

You must be logged in to vote

Hi, did you figure it out?

Rules are there to map sets of one domain to a single set of another, so it expects the left side to be an iterable like a tuple.

Try

R1 = Rule({(temp.hot, ): motor.fast})

That should do the trick.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@renemkr
Comment options

Answer selected by amogorkon
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants