gracelang / language

Design of the Grace language and its libraries
GNU General Public License v2.0
6 stars 1 forks source link

Join method on Strings or Sequences #126

Open apblack opened 7 years ago

apblack commented 7 years ago

Python has a handy join method on strings

method join(seq:Sequence) 
    // returns a string in which the string elements of sequence have been joined by self as a separator

This is partially, but not fully, subsumed by seq.do(_)separatedBy(_).

Do we want to add this method? On Strings, or on Sequences?