Added back revers_str and changed the example script

This commit is contained in:
Brandon Rozek 2020-12-14 10:19:02 -05:00
parent 46722c9b5d
commit 705798eeb0
2 changed files with 33 additions and 119 deletions

View file

@ -361,6 +361,11 @@ revers() {
echo "$result"
}
# Reverses a string
revers_str() {
splitc | revers | list_join
}
# Removes multiple occurences of
# a single character from the beginning
# of the list.