Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 2af8dd6

Browse files
committedFeb 19, 2021
Domain doc
1 parent bb5adb4 commit 2af8dd6

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed
 

‎src/fuzzylogic/classes.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,8 @@ class Domain:
3535
>>> temp.hot = Set(lambda x: 0)
3636
>>> temp.hot(5)
3737
0
38-
39-
DO NOT call a derived set without assignment first as it WILL
40-
confuse the recursion and seriously mess up.
41-
NOT: ~temp.hot(2) or ~(temp.hot.)(2)
42-
BUT:
43-
>>> not_hot = ~temp.hot
44-
>>> not_hot(2)
38+
It is possible now to call derived sets without assignment first!
39+
>>> (very(~temp.hot) | ~very(temp.hot))(2)
4540
1
4641
4742
You MUST NOT add arbitrary attributes to an *instance* of Domain - you can

0 commit comments

Comments
 (0)
Please sign in to comment.