summaryrefslogtreecommitdiff
path: root/README.markdown
diff options
context:
space:
mode:
authorReinhard Vicinus <r.vicinus@metaways.de>2016-03-22 15:06:31 +0100
committerReinhard Vicinus <r.vicinus@metaways.de>2016-03-22 16:24:09 +0100
commit85ff2a28a83984c827985181d58c55ca8c524ed6 (patch)
treec0ba919936c73e94e66f4952caeff47f9f746294 /README.markdown
parentb6383d259cf4917edd832ba31cf4dae2b4201235 (diff)
improve suffix function to support the same feature set as prefix
Diffstat (limited to 'README.markdown')
-rw-r--r--README.markdown7
1 files changed, 6 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown
index e346f4f..6cedc2a 100644
--- a/README.markdown
+++ b/README.markdown
@@ -904,7 +904,12 @@ Removes leading and trailing whitespace from a string or from every string insid
#### `suffix`
-Applies a suffix to all elements in an array. For example, `suffix(['a','b','c'], 'p')` returns ['ap','bp','cp']. *Type*: rvalue.
+Applies a suffix to all elements in an array, or to the keys in a hash.
+For example:
+* `suffix(['a','b','c'], 'p')` returns ['ap','bp','cp']
+* `suffix({'a'=>'b','b'=>'c','c'=>'d'}, 'p')` returns {'ap'=>'b','bp'=>'c','cp'=>'d'}.
+
+*Type*: rvalue.
#### `swapcase`