diff options
author | Chris Edester <edestecd@miamioh.edu> | 2016-08-05 15:38:59 -0400 |
---|---|---|
committer | Chris Edester <edestecd@miamioh.edu> | 2016-08-05 15:38:59 -0400 |
commit | 17a49baae33a78d6aa781aaaadafc08b43def040 (patch) | |
tree | 0fabeb603170308ab59fa3ddd58b2cc573219051 /README.markdown | |
parent | 2bf9187cf8971fad35b0ffebf7c49963ba35c850 (diff) |
Handle array values in join_keys_to_values function
Diffstat (limited to 'README.markdown')
-rw-r--r-- | README.markdown | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/README.markdown b/README.markdown index 0666b37..90addee 100644 --- a/README.markdown +++ b/README.markdown @@ -716,7 +716,9 @@ Joins an array into a string using a separator. For example, `join(['a','b','c'] #### `join_keys_to_values` -Joins each key of a hash to that key's corresponding value with a separator. Keys and values are cast to strings. The return value is an array in which each element is one joined key/value pair. For example, `join_keys_to_values({'a'=>1,'b'=>2}, " is ")` results in ["a is 1","b is 2"]. *Type*: rvalue. +Joins each key of a hash to that key's corresponding value with a separator. Keys are cast to strings. +If values are arrays, multiple keys are added for each element. +The return value is an array in which each element is one joined key/value pair. For example, `join_keys_to_values({'a'=>1,'b'=>[2,3]}, " is ")` results in ["a is 1","b is 2","b is 3"]. *Type*: rvalue. #### `keys` |