Description Arguments Value Usage Details Author(s) See Also Examples
Remove the specified number of elements from either the head or tail of a data structure.
x |
Any indexable data structure |
head |
The number of elements to be removed from the head of x |
tail |
The number of elements to be removed from the tail of x |
A data structure with the head and tail chomped off
chomp(x, head=1, tail=1)
This function is inspired by the PERL function of the same name. While the PERL version is designed for strings, this version is designed for any indexable data structure, typically containing numbers.
Brian Lee Yung Rowe
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.