Created
August 17, 2025 22:46
-
-
Save trycf/07164cfb91feeef0fa1392ee349e95e7 to your computer and use it in GitHub Desktop.
TryCF Gist
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
<cfscript> | |
aNumbers = [5,8,7,3,9,12,47,95]; | |
// arrayAvg() => Calculates the average of the values in an array | |
result = aNumbers.avg(); | |
// arraySum() => Calculates the sum of all the elements in an array. | |
// result = ArraySum(aNumbers); | |
//result = aNumbers.sum(); | |
// arrayMax() => Finds the maximum value of the elements in an array. | |
// result = ArrayMax(aNumbers); | |
//result = aNumbers.max(); | |
// arrayMin() => Finds the minimum value of the elements in an array. | |
// result = ArrayMin(aNumbers); | |
//result = aNumbers.min(); | |
//writedump(result); | |
// arrayToList() => Converts a one-dimensional array to a list. | |
// lBands = arrayToList(aBands); | |
lBands = aBands.toList(); | |
writeDump(lBands); | |
</cfscript> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment