Clojure equivalents of .indexOf .lastIndexOf

2013-02-28 Thread Irakli Gozalishvili
Hi, I was looking at http://clojure.org/cheatsheet to find something I could use for getting an index of specific item in the string / vector. It looks like `.indexOf` / `.lastIndexOf (http://docs.oracle.com/javase/6/docs/api/java/lang/String.html#lastIndexOf%28java.lang.String%29)` are

Re: Clojure equivalents of .indexOf .lastIndexOf

2013-02-28 Thread Andy Fingerhut
Although the cheat sheet is hosted on clojure.org, I'd hesitate a bit in inferring from its contents that .indexOf and .lastIndexOf are officially suggested options. More precise would be to say that when I was updating the cheatsheet a year ago to add many things that weren't already on