diff options
author | Wilson McCoubrey <wilson@mccoubreys.co.uk> | 2016-11-10 16:52:30 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-11-10 16:52:30 +0000 |
commit | dcef77af4cef2870874f76c06e92f601aeb5bc0c (patch) | |
tree | 7116b1977092ce65507661400af791405c171702 /README.markdown | |
parent | b527d3b303fbe8e6deab58f491bc178c761495cd (diff) | |
parent | 17a49baae33a78d6aa781aaaadafc08b43def040 (diff) |
Merge pull request #632 from MiamiOH/master
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 b41039d..cc29af9 100644 --- a/README.markdown +++ b/README.markdown @@ -772,7 +772,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` |