seq have value semantics, meaning they are copied.

You have 2 issues:

  * You don't return or assign to the implicit result value in your branch of 
`if found != -1:`
  * Your are shadowing the implicit result with `let result` in your other 
branch. `result` is implicit, already declared.


Reply via email to