Hey, you can use `subs` and `format` for this kind of jobs:
(defn abbr [string max-size cursor-col]
(->> (subs string cursor-col)
(format (str "%." max-size "s"))))
(defn fill-right [string size]
(format (str "%-" size "s"))))
(defn fill-left [string size]
(format (str "%" size "s"))))
@mdallastella I'm not versed in format so I avoid it.
Thank you for the info. I'll educate myself more and then start using it :)
I'll need it for this thingie
functional.cafe is an instance for people interested in functional programming and languages.