diff --git a/src/core/gossamer-core.scala b/src/core/gossamer-core.scala index 187821e..a1befad 100644 --- a/src/core/gossamer-core.scala +++ b/src/core/gossamer-core.scala @@ -239,9 +239,8 @@ extension [TextType: Textual](text: TextType) text.where(!pred(_)).lay(TextType.empty): ordinal => text.before(ordinal) - def snipWhere(pred: Char => Boolean, index: Ordinal = Prim): Optional[(TextType, TextType)] = - text.where(pred, index).let: ordinal => - text.snip(ordinal.n0) + def snip(pred: Char => Boolean, index: Ordinal = Prim): Optional[(TextType, TextType)] = + text.where(pred, index).let(_.n0).let(text.snip(_)) def mapChars(lambda: Char => Char): TextType = TextType.map(text, lambda) diff --git a/src/core/soundness+gossamer-core.scala b/src/core/soundness+gossamer-core.scala index 909e523..40cf2d8 100644 --- a/src/core/soundness+gossamer-core.scala +++ b/src/core/soundness+gossamer-core.scala @@ -20,7 +20,7 @@ export gossamer.{Bidi, Buffer, Cuttable, Decimalizer, Interpolation, Joinable, N Presentational, Pue, RangeError, TextBuffer, Textual, append, construct, fill, txt, t, utf8, utf16, ascii, hex, text, pue, cut, pascal, camel, snake, kebab, length, populated, lower, upper, plain, skip, keep, capitalize, uncapitalize, tail, init, empty, chars, - snip, reverse, contains, trim, where, upto, dropWhile, snipWhere, + snip, reverse, contains, trim, where, upto, dropWhile, mapChars, count, metrics, pad, center, fit, uncamel, unkebab, unsnake, starts, ends, tr, subscript, superscript, sub, flatMap, urlEncode, urlDecode, punycode, bytes, sysBytes, lev, join, add, words, lines, appendln, spaced, slices, seek, search}