(range 0 i)
(indices (+ i 1))
0..i
Edit2: It's also better to use true tail recursion:
(def factorial (n) ((afn (acc n) (if (< n 2) acc (self (* acc n) (- n 1)))) 1 n))