I am a Full Stack Developer from Brazil.
-
๐ญ I'm contributing to frontend and backend projects and building web apps.
-
๐ฑ Exploring Technical Content Writing.
-
โก In my free time, I solve programming challenges and read tech articles.
Pyfunctools is a module that provides functions, methods and classes that help in the creation of projects in python, bringing functional and object-oriented programming methods.
Home Page: http://pyfunctools.rtfd.io/
License: MIT License
I am a Full Stack Developer from Brazil.
๐ญ I'm contributing to frontend and backend projects and building web apps.
๐ฑ Exploring Technical Content Writing.
โก In my free time, I solve programming challenges and read tech articles.
Hello,
I noticed minor issues in the doc that could be improved for better clarity.
Current Documentation:
pyfunctools.pipeline.pipeline(*funcs)๏
Define a pipeline
Parameters
*funcs (list[callable]) โ a list of callables to be called later
Returns
last pipe return
Issues Identified:
The parameter *funcs should be typed as callable and not list[callable].
The return type description "last pipe return" is unclear. The function actually returns a callable.
pyfunctools.pipeline.pipeline(*funcs)๏
Define a pipeline
Parameters
*funcs (callable) โ a variable number of callables to be called sequentially later.
Returns
callable โ a callable that, when invoked, executes the provided callables in sequence, passing the output of each as the input to the next, and returns the result of the last callable.
Add a compose function
In computer science, function composition is an act or mechanism to combine simple functions to build more complicated ones. Like the usual composition of functions in mathematics, the result of each function is passed as the argument of the next, and the result of the last one is the result of the whole.
Source: Wikipedia
Usage examples
from pyfunctools.compose import compose
add_one = lambda x: x + 1
double = lambda x: x * 2
compose(add_one, double)(1) # -> 3
Adds a method like flatMap on class Array
Add a implementation of the Pipeline pattern
Usage examples
from pyfunctools.pipe import pipe
add_one = lambda x: x + 1
double = lambda x: x * 2
pipe(add_one, double)(1) # -> 4
Describe the bug
Some functions are not available at module level
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.