home/categories/database-tools/blockscout-blockscout-agents-skills-efficient-list-building-skill-md
database-toolsdatabases

efficient-list-building

Build lists efficiently using prepend operations and Enum.reverse/1 instead of append. Appending to lists is O(n) while prepending is O(1). Use [head | tail] notation and reverse at the end when order matters.

blockscout
maintainer
blockscout
更新於 3/6/2026
星標
4492
分支
3032
quick start

Installation and usage

Build lists efficiently using prepend operations and Enum.reverse/1 instead of append. Appending to lists is O(n) while prepending is O(1). Use [head | tail] notation and reverse at the end when order matters.

安裝
$ install --globalskills.sh
使用

安裝後,您可以通過在終端運行以下命令來使用此技能:

skills use efficient-list-building