You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's the easiest-to-implement persistent data structure, and there are lots of classic functional algorithms that work best when building a list in reverse.
(cons 1 someList)
which creates a new list, starting with 1, followed by the contents of someList, might be e.g. expressed as
someList.prependedBy(1)
or, of course, some better, more concise name.
I'm not good at naming, so I tend to use very obvious, yet also very long, names 😅
The text was updated successfully, but these errors were encountered:
It's the easiest-to-implement persistent data structure, and there are lots of classic functional algorithms that work best when building a list in reverse.
which creates a new list, starting with 1, followed by the contents of
someList
, might be e.g. expressed asor, of course, some better, more concise name.
I'm not good at naming, so I tend to use very obvious, yet also very long, names 😅
The text was updated successfully, but these errors were encountered: