It's a pretty common idiom in other languages for substring functions to count from the end if given a negative index.
(substring "hello world!" 6 -1) ;; => "world" I'd be glad if Clojure's "subs" function could work like this. Should I create an issue and patch to implement it? -Phil --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en -~----------~----~----~----~------~----~------~--~---