How do you calculate the length of a singly-linked list that may be cyclic? CLHS includes a nice implementation: https://clhs.lisp.se/Body/f_list_l.htm
miniblog.
Related Posts
Shower thought: presumably keyword length affects naming habits? Are programmers more willing to write verboseFunctionName if the keyword is `fn` rather than `function`?
ASCII strings are so convenient. Byte length and character (grapheme) length are the same, and display length is simple too (tabs are the main fiddly bit).
As soon as you have Unicode, you need to distinguish these and use non-trivial libraries!
Variable length arrays in C, the change in Linux kernel developer viewpoints, and the effect of clang constraining its VLA featureset: