mirror of
https://github.com/logos-messaging/nim-ffi.git
synced 2026-06-21 08:49:34 +00:00
Replace the manual index-scan + delete with sequtils.keepItIf and a length-delta check. keepItIf does the find-and-remove in one pass, so the inner loop and the sentinel idx variable go away; comparing the seq length before/after is enough to know whether this event held the listener. Same prune-empty-key behaviour, less bookkeeping. Addresses PR #70 review comment r3343439866. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
nim-ffi
Allows exposing Nim projects to other languages
Example
examples/timer is now a self-contained Nimble project that imports nim-ffi directly.
Use cd examples/timer && nimble install -y ../.. && nimble build to compile the example.
Description
Languages
Nim
87.9%
Smarty
5.9%
C++
4.8%
CMake
1.4%