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

Function func

tests/python/test_arrays.py:1009–1010  ·  view source on GitHub ↗
(element, index, array)

Source from the content-addressed store, hash-verified

1007
1008def test_forEach_with_python_function():
1009 def func(element, index, array):
1010 array[int(index)] = "to each his own"
1011 items = ['Four', 'Three', 'One']
1012 returnResult = [0]
1013 pm.eval("(returnResult, arr, func) => {returnResult[0] = arr.forEach(func)}")(returnResult, items, func)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected