Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update about.md #1279

Merged
merged 1 commit into from
Sep 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions concepts/recursion/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Here is a tail-recursive version of the list length function:
```fsharp
let rec lengthRecursive acc list =
match list with
| [] -> 0
| [] -> acc
| x::xs -> lengthRecursive (acc + 1) xs

let length list = lengthRecursive 0 list
Expand All @@ -51,7 +51,7 @@ It is quite common to define the recursive helper as a nested function, which hi
let length list =
let rec lengthRecursive acc remainder =
match remainder with
| [] -> 0
| [] -> acc
| x::xs -> lengthRecursive (acc + 1) xs

lengthRecursive 0 list
Expand Down