HF RL Explorer

thread first does not insert the value at the front when a tuple form is given

thread first does not insert the value at the front when a tuple form is given: a task in repo2rlenv-swe-smith (Harbor dataset). thread first is supposed to thread a value through a sequence of forms, inserting it as the first argument of each call. When a form is a tuple (fn, arg1, arg2, …) , the…

The task

`thread_first` is supposed to thread a value through a sequence of forms, inserting it as the **first** argument of each call. When a form is a tuple `(fn, arg1, arg2, …)`, the threaded value should be prepended, producing `fn(val, arg1, arg2, …)`.

Part of FineEnvs/repo2rlenv-swe-smith.