You can also use them as arguments and return values of other functions. However, it provides several features that allow you to use a functional style:įunctions in Python are first-class objects, which means that you can pass them around as you’d do with any other object. Python isn’t heavily influenced by functional languages but by imperative ones. Reducing applies a reduction function to an iterable and returns a single cumulative value.Filtering applies a predicate, or Boolean-valued, function to an iterable and generates a new iterable containing the items that satisfy the Boolean condition.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |