Metadata-Version: 2.1
Name: kecutil
Version: 0.0.5
Summary: Simple utility functions for KEC's Intro To Programming: Python Course
Author: Hycord (Masen Toplak)
Author-email: <hello@masen.dev>
Keywords: python
Classifier: Development Status :: 1 - Planning
Classifier: Intended Audience :: Developers
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: Unix
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: Microsoft :: Windows
Description-Content-Type: text/markdown


## KEC ITP: Python Util Functions

### Functions

> kecutil.reduce(cb(cur, val), list, default)
> Reduce is used to *reduce* a list to one value.
> This is commonly useful when finding the longest string for example
>
> ```python
> from kecutil import reduce
>
>
> strings = ["ab", "acb", "abcdef", "abd"]
> longestString = reduce(lambda x, y: x if len(x) > len(y) else y, strings, "")
>
> print(longestString) # "abcdef"
> ```
