You could try the following, using the Java substring method and a vector of offsets:
(defn split-id [tileid]
(map
#(Integer/parseInt (.substring tileid % (+ % 3)) )
[2 5]))
You could try the following, using the Java substring method and a vector of offsets:
(defn split-id [tileid]
(map
#(Integer/parseInt (.substring tileid % (+ % 3)) )
[2 5]))