Function output of the index_compute function where the input stack is s, value is n, and index is i

helper for the find number function that tracks the current stack index in i while looking for n in s

Format:

output of the index_compute function where the input stack is s, value is n, and index is i

Input:

list s -
any n -
number i -

Output:

any - None

Properties that reference this function:

index of value v in els = output of the index_compute function where the input stack is els, value is v, and index is 0 (Find Value)

Conditional properties that reference this function:

  • if el = val, then output of the index_compute function where the input stack is [ el, remain ], value is val, and index is idx = idx (link)
  • if not (el = val), then output of the index_compute function where the input stack is [ el, remain ], value is val, and index is idx = output of the index_compute function where the input stack is remain, value is val, and index is (idx + 1) (link)


Comments

Please log in to add comments