You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: common-docs/python/functions.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -96,7 +96,7 @@ The default value of `lastName` disappears in the type, only leaving behind the
96
96
Handler functions are functions that take some action when an event or change of state occurs. Usually, some other code saves, or registers, the handler function in a variable in order to call
97
97
it at a later time. When an event happens, like a new input value or an elapsed timer, the handler is called to run a response action.
98
98
99
-
As an example, the `Thermal` class will check for changes in temperature and run a registered handler when the temperature drops to a set thershold:
99
+
As an example, the `Thermal` class will check for changes in temperature and run a registered handler when the temperature drops to a set threshold:
100
100
101
101
```python-ignore
102
102
# the handler function when it's cold...
@@ -122,9 +122,9 @@ thermal.whenCold(whenCold)
122
122
thermal.checkCold()
123
123
```
124
124
125
-
## Lamda Functions
125
+
## Lambda Functions
126
126
127
-
Lamda functions serve as a kind of shortcut to return a result of an expression. A lamda is often saved to a variable and then used like a function to return the expression result:
127
+
Lambda functions serve as a kind of shortcut to return a result of an expression. A lambda is often saved to a variable and then used like a function to return the expression result:
0 commit comments