-
Notifications
You must be signed in to change notification settings - Fork 1
/
No_tsl.prompt
20 lines (11 loc) · 919 Bytes
/
No_tsl.prompt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Take the following natural language description of a program and implement it in JavaScript, as a function:
function updateState({currentState, inputVar1, inputVar2, ..., cellVar1, cellVar2, ... }) {
// ... [TODO: fill this in] ...
return { currentState, outputVar1, outputVar2, ... cellVar1, cellVar2, ... }
}
Note: Replace the placeholders `inputVar1, inputVar2`, `outputVar1, outputVar2`, and `cellVar1, cellVar2` with the actual variable names as per the "Inputs", "Outputs", and "Cells" sections below. If there are no "Inputs", there will be no "Inputs" section. Same for "Outputs" and "Cells".
This is a complete listing of the functions, predicates, and cells you can assume access to. Your implementation should reference nothing else.
[[FUNCTIONS_AND_PREDICATES_GO_HERE]]
Natural language description:
[[NATURAL_LANGUAGE_SUMMARY_GOES_HERE]]
[[NATURAL_LANGUAGE_DESCRIPTION_GOES_HERE]]