Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/ianj-als/pypeline.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/pypeline/helpers/helpers.py')
-rw-r--r--src/pypeline/helpers/helpers.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/pypeline/helpers/helpers.py b/src/pypeline/helpers/helpers.py
index 190d8fb..5a6b7cd 100644
--- a/src/pypeline/helpers/helpers.py
+++ b/src/pypeline/helpers/helpers.py
@@ -118,14 +118,13 @@ def cons_function_component(function,
def bind_function(a):
def state_function(s):
- # Transform the value into a line, that when
- # injected into stdin, the subprocess will understand
+ # Transform the input
transformed_a = input_forming_function(a, s) if input_forming_function else a
# Apply
new_a = function(transformed_a, s)
- # Parse the output from the subprocess
+ # Transform the output of the function
transformed_new_a = output_forming_function(new_a, s) if output_forming_function else new_a
# Mutate the state