Data update
This commit is contained in:
parent
5af6d93694
commit
796d366b97
455 changed files with 7413 additions and 1900 deletions
13
Task/Averages-Mode/FutureBasic/averages-mode.basic
Normal file
13
Task/Averages-Mode/FutureBasic/averages-mode.basic
Normal file
|
|
@ -0,0 +1,13 @@
|
|||
local fn ModeAverage( arguments as CFArrayRef ) as CFStringRef
|
||||
ExpressionRef expRef = fn ExpressionForFunction( @"mode:", @[fn ExpressionForConstantValue( arguments )] )
|
||||
CFArrayRef modeArray = fn ExpressionValueWithObject( expRef, NULL, NULL )
|
||||
CFNumberRef number
|
||||
CFMutableStringRef modeStr = fn MutableStringNew
|
||||
for number in modeArray
|
||||
MutableStringAppendFormat( modeStr, @"value = %@\n", number )
|
||||
next
|
||||
end fn = modeStr
|
||||
|
||||
print fn ModeAverage( @[@1, @3, @6, @6, @6, @6, @7, @7, @12, @12, @12, @12, @17] )
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue