content-range

swank.commands.inspector

  • (content-range lst start end)

0 Examples top

Log in to add / edit an example.

See Also top

Log in to add a see also.

Plus_12x12 Minus_12x12 Source swank/commands/inspector.clj:228 top

(defn content-range [lst start end]
    (let [amount-wanted (- end start)
          shifted (drop start lst)
          taken (take amount-wanted shifted)
          amount-taken (count taken)]
      (if (< amount-taken amount-wanted)
        (list taken (+ amount-taken start) start end)
        ;; There's always more until we know there isn't
        (list taken (+ end 500) start end))))
Vars in swank.commands.inspector/content-range: + < defn let list
Used in 0 other vars

Comments top

No comments for content-range. Log in to add a comment.