(between-span a b)
Return a span of the area between two spans A and B. Type of new span is :between.
Return a span of the area between two spans A and B. Type of new span is :between.
(contains-span? s1 s2)
Return true if s1 is contains spans s2.
Return true if s1 is contains spans s2.
(end-of-span? span k)
Return true if location k is the end of span.
Return true if location k is the end of span.
(in-span? span k)
Return true if location k is in span. We assume span is [i,j).
Return true if location k is in span. We assume span is [i,j).
(intersection-span A B)
Return the intersection of two spans as a span. Type of new span is :intersection.
Return the intersection of two spans as a span. Type of new span is :intersection.
(make-span start end type)
Make a native span object.
Make a native span object.
(merge-spans A B)
Given two overlapping spans where the first comes before the second, return a merged span with the type of the first.
Given two overlapping spans where the first comes before the second, return a merged span with the type of the first.
(right-of-span? span k)
Return true if location k is to the right of span.
Return true if location k is to the right of span.
(shift-span span i)
Shift a span by i positions.
Shift a span by i positions.
(span-disjoint? A B)
Return true of A does not overlap B.
Return true of A does not overlap B.
(span-length s)
Return the length of the span.
Return the length of the span.
(span-overlaps? A B)
Return true if A overlaps B.
Return true if A overlaps B.
(subs-span s span)
Return the substring corresponding to the span.
Return the substring corresponding to the span.
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close