Quick - ÐƤ - Suffixes

Characters: Ð , Ƥ

Tags: array

Arity: monadic

The resulting link is monadic, meaning it takes one argument. Note that the arity refers to that of the resulting link, not the number of links this quick consumes.

Functionality

Apply a link to suffixes or to non-overlapping infixes / outfixes.

Details

If the link right before ÐƤ is a nilad, apply to non-overlapping infixes / outfixes of size n. For positive n, split the list into overlapping chunks of length n (identical to s (Split (Length))) and apply to each sublist. For negative n, instead of reducing each sublist, slice and remove chunks of length -n. For example, 5R ¹-2ÐƤ returns [[3, 4, 5], [1, 2, 5], [1, 2, 3, 4]] - in the first list, [1, 2] is removed, in the second list, [3, 4] is removed, and in the last list, [5] is removed.

Otherwise, simply apply the link to each suffix. a,b,c,... SÐƤ is equivalent to [[a, b, c, ...] S, [b, c, ...] S, [c, ...] S, ...].

Syntax