Skip to content

Commit 97ae042

Browse files
Update remaining cllable wording
1 parent cb9050c commit 97ae042

1 file changed

Lines changed: 2 additions & 4 deletions

File tree

lectures/functions.md

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ Notes
360360

361361
Now, there are several ways that we can simplify the code above.
362362

363-
For example, we can get rid of the conditionals all together by just passing the desired generator type as a function, method, or other callable object.
363+
For example, we can get rid of the conditionals all together by just passing the desired generator type as a function, method, or other [callable](https://typing.python.org/en/latest/spec/callables.html) object.
364364

365365
To understand this, consider the following version.
366366

@@ -401,9 +401,7 @@ m(7, 2, 4)
401401
Here we created another name for the built-in function `max()`, which could
402402
then be used in identical ways.
403403

404-
In the context of our program, the ability to bind new names to functions
405-
means that there is no problem *passing a function as an argument to another
406-
function*---as we did above.
404+
In the context of our program, the ability to bind names to functions, or more generally to callable objects, means that there is no problem passing one callable object as an argument to another callable --- as we did with `rng.uniform` above.
407405

408406

409407
(recursive_functions)=

0 commit comments

Comments
 (0)