R/cBracelets.R

Defines functions cBracelets

Documented in cBracelets

cBracelets <- 
function(v=c(),bOut=FALSE) {
  u<-lSort(union( cNecklaces(v),cNecklaces(v[length(v):1]) )) ;
  if (!bOut) return(u);
  i<-1; for (w in u) {cat("[",w,"]  (",i,")\n");i<-i+1};
}

Try the Necklaces package in your browser

Any scripts or data that you put into this service are public.

Necklaces documentation built on Aug. 24, 2025, 9:07 a.m.