Sattolo cycle: Difference between revisions
→{{header|FutureBasic}}
No edit summary |
|||
Line 1,029:
include "NSLog.incl"
NSUInteger i, j, count = len(mutArr)
for i =
cln j =
MutableArrayExchangeObjects( mutArr, i, j )
next
end fn
NSUInteger i, count▼
CFMutableArrayRef mutArr
mutArr = fn MutableArrayWithObjects( @0, @1, @2, @3, @4, @5, @6, @7, @8, @9 )
NSLog( @"Before shuffle: %@", fn ArrayComponentsJoinedByString( mutArr, @"" ) )
for i =
fn SattoloCycle( mutArr )
NSLog( @"%@", fn ArrayComponentsJoinedByString( mutArr, @"" ) )
next
Line 1,100 ⟶ 1,101:
)
</pre>
=={{header|Go}}==
|