VocabularysequencesInputsOutputsbefore-slice | a slice |
after-slice | a slice |
Word descriptionOutputs a pair of sequences, where
after consists of the last
n elements of
seq, while
before-slice is a slice of the remaining elements.
NotesUnlike
cut*, this is suitable for use in an iterative algorithm which cuts successive pieces off a sequence.
See alsocut,
cut*,
cut-sliceDefinition