Cosmetic: replace custom lst with pure

Feel free to accept/refuse the PR.
You can actually replace the custom `lst` function with pure