summaryrefslogtreecommitdiffstats
path: root/docs/content/3.manual/manual.yml
diff options
context:
space:
mode:
Diffstat (limited to 'docs/content/3.manual/manual.yml')
-rw-r--r--docs/content/3.manual/manual.yml5
1 files changed, 5 insertions, 0 deletions
diff --git a/docs/content/3.manual/manual.yml b/docs/content/3.manual/manual.yml
index 5bcce3ff..35396fb6 100644
--- a/docs/content/3.manual/manual.yml
+++ b/docs/content/3.manual/manual.yml
@@ -1549,6 +1549,11 @@ sections:
With that definition, `addvalue(.foo)` will add the current
input's `.foo` field to each element of the array.
+ Multiple definitions using the same function name are allowed.
+ Each re-definition replaces the previous one for the same
+ number of function arguments, but only for references from
+ functions (or main program) subsequent to the re-definition.
+
examples:
- program: 'def addvalue(f): . + [f]; map(addvalue(.[0]))'
input: '[[1,2],[10,20]]'