diff --git a/src/core/rudiments.Segmentable.scala b/src/core/rudiments.Segmentable.scala index f27b055..acab3e7 100644 --- a/src/core/rudiments.Segmentable.scala +++ b/src/core/rudiments.Segmentable.scala @@ -5,13 +5,13 @@ import anticipation.* object Segmentable: given [ElementType] => IndexedSeq[ElementType] is Segmentable = - (seq, interval) => seq.slice(interval.start.n0, interval.end.n1) + (seq, interval) => seq.slice(interval.start.n0, interval.end.n0) given [ElementType] => IArray[ElementType] is Segmentable as iarray = - (iarray, interval) => iarray.slice(interval.start.n0, interval.end.n1) + (iarray, interval) => iarray.slice(interval.start.n0, interval.end.n0) given Text is Segmentable = (text, interval) => - text.s.substring(interval.start.n0, interval.end.n1).nn.tt + text.s.substring(interval.start.n0, interval.end.n0).nn.tt trait Segmentable: type Self diff --git a/src/core/soundness+rudiments-core.scala b/src/core/soundness+rudiments-core.scala index 455a93a..6e0cea6 100644 --- a/src/core/soundness+rudiments-core.scala +++ b/src/core/soundness+rudiments-core.scala @@ -27,7 +27,7 @@ export rudiments.{ByteSize, bin, hex, Hex, b, kb, mb, gb, tb, byteSize, sift, ha Exit, Pid, Quickstart, Nat, Label, unit, waive, twin, triple, is, matchable, give, pipe, tap, also, Counter, loop, Loop, &, tuple, to, WorkingDirectoryError, HomeDirectoryError, WorkingDirectory, HomeDirectory, workingDirectory, homeDirectory, Bond, binds, bound, prim, sec, - ter, unwind, at, Indexable, yet, Capability, Bijection, bijection} + ter, unwind, at, Indexable, yet, Capability, Bijection, bijection, segment, Segmentable} package quickstart: export rudiments.quickstart.defaults as defaults