File tree Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Expand file tree Collapse file tree 2 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 219cd4b21f69fef74c4c86b7135d2fcc7b382dbf
2
+ refs/heads/master: 1980a2db53f0ad9aaee469dd7af8707cd586fe80
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export unshift_byte;
45
45
export split;
46
46
export concat;
47
47
export connect;
48
+ export connect_ivec;
48
49
export to_upper;
49
50
export safe_slice;
50
51
@@ -447,6 +448,16 @@ fn connect(vec[str] v, str sep) -> str {
447
448
ret s;
448
449
}
449
450
451
+ fn connect_ivec( & str [ ] v, str sep) -> str {
452
+ let str s = "" ;
453
+ let bool first = true ;
454
+ for ( str ss in v) {
455
+ if ( first) { first = false ; } else { s += sep ; }
456
+ s += ss;
457
+ }
458
+ ret s;
459
+ }
460
+
450
461
451
462
// FIXME: This only handles ASCII
452
463
fn to_upper ( str s) -> str {
You can’t perform that action at this time.
0 commit comments