MCPcopy Create free account
hub / github.com/Distributive-Network/PythonMonkey / myFunc

Function myFunc

tests/python/test_arrays.py:860–861  ·  view source on GitHub ↗
(e, f)

Source from the content-addressed store, hash-verified

858 items = ['Four', 'Three', 'One']
859
860 def myFunc(e, f):
861 return len(e) - len(f)
862 pm.eval("(arr, compareFun) => {arr.sort(compareFun)}")(items, myFunc)
863 assert items == ['One', 'Four', 'Three']
864

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected