deltas

From The K Language Wiki
Revision as of 06:54, 6 August 2021 by Razetime (talk | contribs) (Created page with "{{primitive|deltas}} '''deltas''' is used to get the deltas of a numeric array. It is equivalent to <code>-':</code> in most K dialects. <pre> deltas 1 6 2 3 4 1 5 -4 1 1...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Deltas
deltas

deltas is used to get the deltas of a numeric array.

It is equivalent to -': in most K dialects.

 deltas 1 6 2 3 4
1 5 -4 1 1