In general for this pattern you Zip a stream that skips the first element with the normal stream and then apply the operation. Remember that Zip always combines the two input streams pairwise, no matter when the inputs arrive and produces an output only when new pairs are formed.
In this case the first stream is [F1, F2, F3, ...] and the second stream is [F0, F1, F2, ...] so you end up with [(F1,F0),(F2,F1),(F3,F2), ...].
There are also ways to generalize comparisons across N frames but I'll leave that as an exercise.
--
You received this message because you are subscribed to the Google Groups "Bonsai Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bonsai-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bonsai-users/3081de41-f879-42e1-8c23-595342ca16ec%40googlegroups.com.