# Reference/prior

From Kx Wiki

Revision as of 10:44, 3 May 2011 by Attila Vrabecz (Talk)

## prior (prior function)

Apply the function f between each item of y and its predecessor.

Since 2.7 2011.03.07

## Syntax

f prior y

## Examples

q)(-)prior 2 3 4 / e.g. same as deltas 2 3 4 2 1 1