Each prior: Difference between revisions

From The K Language Wiki
Content added Content deleted
mNo edit summary
("Add category")
Line 12: Line 12:
-4 5 -4 1 1
-4 5 -4 1 1
</pre>
</pre>

[[Category:Adverbs]]

Revision as of 02:42, 9 July 2022

Each prior
f':x
x f':y

Each prior applies a dyadic function to each element, and the element prior to it.

If provided with a left argument, uses it as an initial value.

 -':1 6 2 3 4
1 5 -4 1 1

 5-':1 6 2 3 4
-4 5 -4 1 1