cool
cool copied to clipboard
Make Python code cooler. Less is more.
### The "@ P" and "@ PP" Syntax Related discussion: https://github.com/abersheeran/cool/discussions/6 #### Motivation For partial functions, currently we have syntax `F(func, *args, **kwargs)` or `FF(func, *args, **kwargs)`. The syntax have...
### Compose functions *Inspired by [F# function-composition-and-pipelining](https://docs.microsoft.com/en-us/dotnet/fsharp/language-reference/functions/#function-composition-and-pipelining).* Combine two functions to generate a new function. ```python from cool import C, F nonlazy_map = map >> C(list) assert range(10) | F(nonlazy_map,...