diff --git a/doc/Factoids.md b/doc/Factoids.md index 459e75e9..d6e24ebc 100644 --- a/doc/Factoids.md +++ b/doc/Factoids.md @@ -409,6 +409,7 @@ Selection Modifier | Description `:-sort` | Sorts the selected list in descending order. `:comma` | Converts a selected list to a comma-separated list. `:enumerate` | Converts a selected list to a comma-separated list with `and` replacing the final comma. +`:join([s])` | Converts a selected list to an `s`-separated list. `s` is a string optionally enclosed in quotes. !echo $colors:pick(5):comma red, bright yellow, blue, dark purple, orange @@ -416,6 +417,12 @@ Selection Modifier | Description !echo $colors:pick(5):enumerate blue, green, dark purple, orange and bright yellow + !echo $colors:pick(5):join('::') + red::orange::bright yellow::green + + !echo $colors:pick(3):join() + greenorangeblue + And finally, text modifiers alter the selected values. !echo $colors:uc