MCPcopy Create free account
hub / github.com/McGill-NLP/length-generalization / modify_array

Function modify_array

scripts/experiment_uploaders/scratchpad.py:57–59  ·  view source on GitHub ↗
(arr: List[Any], idx: int, val: Any)

Source from the content-addressed store, hash-verified

55
56
57def modify_array(arr: List[Any], idx: int, val: Any) -> List[Any]:
58 arr[idx] = val
59 return arr
60
61
62def generate_all_scratchpad_configs(ds_name, split_name) -> List[Dict[str, Any]]:

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected