Generate KDB / Q sequence similar to R seq (from, to, step)
4 answers
Another option (a slight modification of terrylynch's solution ):
q) {(z+)\[floor(y-x)%z;x]} [1;20;2]
1 3 5 7 9 11 13 15 17 19
+1
source to share