MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / distinct

Function distinct

tools/python-3.11.9-amd64/Tools/demo/sortvisu.py:367–370  ·  view source on GitHub ↗
(array)

Source from the content-addressed store, hash-verified

365 array.reset("Uniform data, size %d" % size)
366
367def distinct(array):
368 size = array.getsize()
369 array.setdata(range(1, size+1))
370 array.reset("Distinct data, size %d" % size)
371
372def randomize(array):
373 array.reset("Randomizing")

Callers

nothing calls this directly

Calls 3

setdataMethod · 0.80
getsizeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected