Map [1]
| Operation | Time Complexity |
|---|---|
| Access | O(log n) |
| Search | O(log n) |
| Insertion | O(n) for <= 32 elements, O(log n) for > 32 elements [2] |
| Deletion | O(n) for <= 32 elements, O(log n) for > 32 elements |
| defmodule Aplicar.Checks.SortModuleFunctions do | |
| use Credo.Check, | |
| base_priority: :low, | |
| explanations: [ | |
| check: """ | |
| Alphabetically ordered lists are more easily scannable by the read. | |
| # preferred | |
| def a ... | |
| def b ... | |
| def c ... |