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