Description Usage Arguments Value
This function computes the length of a linked list by scanning through it. This is thus a linear time function.
1 | llength(llist, acc = 0)
|
llist |
The linked list |
acc |
An accumulator (for making the function tail-recursive) |
The length of llist
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.