Skip to Content
  • Website
Codsen
  • Home
  • Open Source
  • Articles
  • About

backOpen Source→string-find-heads-tails→Examples

Permalink to Table of ContentsTable of Contents

  • Quick Take
  • Prefix validation errors with the calling library's name
  • Reject an input made only from one opening marker
  • Start looking for marker pairs at a selected index
  • Return an empty result for unusable marker inputs
  • Require each opening marker to use the tail at the same array index
  • Return completed pairs without throwing on an unmatched marker
↑ back to top

Permalink to Quick TakeQuick Take

↑ back to top

Permalink to Prefix validation errors with the calling library's namePrefix validation errors with the calling library's name

↑ back to top

Permalink to Reject an input made only from one opening markerReject an input made only from one opening marker

↑ back to top

Permalink to Start looking for marker pairs at a selected indexStart looking for marker pairs at a selected index

↑ back to top

Permalink to Return an empty result for unusable marker inputsReturn an empty result for unusable marker inputs

↑ back to top

Permalink to Require each opening marker to use the tail at the same array indexRequire each opening marker to use the tail at the same array index

↑ back to top

Permalink to Return completed pairs without throwing on an unmatched markerReturn completed pairs without throwing on an unmatched marker

↑ back to top
back 

Copyright

All rights reserved © Roy Revelt 2026
All our open source packages are under MIT licenceopens in a new tab

Activities

🐛 See a bug? Raise an issueopens in a new tab
💘 Check out the Indiewebopens in a new tab and Libera manifestoopens in a new tab