In PHP, you can do...
range(1, 3); // Array(1, 2, 3) range(\"A\", \"C\"); // Array(\"A\", \"B\", \"C\")
That is, there is a function that l
My codegolfing coworker came up with this (ES6), inclusive:
(s,f)=>[...Array(f-s+1)].map((e,i)=>i+s)
non inclusive:
(s,f)=>[...Array(f-s)].map((e,i)=>i+s)