(get-next-line console-history)
Returns the next line from console-history, or nil if there is none.
Source
(defn
get-next-line
"Returns the next line from console-history, or nil if there is none."
[console-history]
(let
[{:keys [current-line lines]} @console-history]
(get lines (inc current-line))))