Skip to content

v0.1: feat: Refactor and enhance Trie implementation and tooling (#1)

Pre-release
Pre-release

Choose a tag to compare

@lePereT lePereT released this 09 Jan 22:53
77dcbac
- Refactored trie.lua for improved flexibility:
  - Introduced customizable tokenisation/detokenisation for string, table, and custom key types.
  - Added robust token validation ensuring tokens are strings or numbers.
  - Enhanced wildcard matching with dedicated prefix and exact match iterators using coroutines.
- Updated readme.md to document the new API and usage examples.
- Revised test.lua and bench.lua to cover new functionality and performance improvements.

This update significantly improves the module's usability, extensibility, and maintainability.