MCPcopy Create free account
hub / github.com/RcppCore/Rcpp / collapse__impl

Function collapse__impl

inst/include/Rcpp/sugar/functions/strings/collapse.h:28–35  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

26 namespace sugar {
27 template <typename Iterator>
28 inline String collapse__impl( Iterator it, R_xlen_t n ){
29 static String buffer ;
30 buffer = "" ;
31 for( R_xlen_t i=0; i<n; i++ ){
32 buffer += it[i] ;
33 }
34 return buffer ;
35 }
36
37 } // sugar
38

Callers 1

collapseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected