Created
July 18, 2018 16:14
-
-
Save aliaspooryorik/b6ab051cc92a19c04d77c0367396f692 to your computer and use it in GitHub Desktop.
CFML range - no loops
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // not intended for real-life usage :) | |
| function range (start, end) { | |
| return repeatString("_,", end-start+1).listToArray().map(function(el, i) { | |
| return start+i-1; | |
| }); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment