Hofstadter Figure-Figure sequences: Difference between revisions

CoffeeScript: check function removal
(CoffeeScript enhancement)
(CoffeeScript: check function removal)
Line 510:
int_array.sort (a, b) -> a - b
 
check i for i in [1..1000]
check = (i) ->
if int_array[i - 1] != i
throw 'Something\'s wrong!'
 
check i for i in [1..1000]
console.log '1000 integer check ok.'</lang>
{{out}}
Anonymous user