Skip to main content
1 of 2
mikera
  • 361
  • 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]))
mikera
  • 361
  • 2
  • 5