Open lionel- opened 4 years ago
Looks neat! But why is this a suffix? I would interpret a suffix as something that falls at the end of the word, isn't this rather a common term across a set of things?
Suffix refers to the last n
values of the vector. This is the conventional term, see https://en.wikipedia.org/wiki/Suffix_array. Technically we should say "longest common suffix" or "prefix" (LCS and LCP).
For example, a suffix function::
This makes me think a version of
seq()
that fails instead of returning an empty vector likeseq2()
would be useful for checking assumptions.