nl_tokens: Wrap a value with parens brackets or braces based on the given character / separator .
pl_tokens: function wrap ( val , ch ) { if ( ch === '|' ) { return '(' + val . join ( ch ) + ')' ; } if ( ch === ',' ) { return '{' + val . <mask> ( ch ) + '}' ; } if ( ch === '-' ) { return '[' + val . join ( ch ) + ']' ; } if ( ch === '\\' ) { return '\\{' + val + '\\}' ; } }