Categories
Libraries
  • Github CLI
  • SSH
  • HTTPS
Clone Repo

zig-leven

Measure the difference between two slices using the Levenshtein distance algorithm

Adapted from https://github.com/sindresorhus/leven

Built With

Install

zigmod aq add 1/nektro/leven

Usage

pub fn leven(comptime T: type, alloc: *std.mem.Allocator, a: []const T, b: []const T, max: ?usize) !usize

Future

TODO Unicode support for strings

License

MIT

About
Measure the difference between two slices using the Levenshtein distance algorithm
Owner
nektro (User)
Last Commit
2025-02-16
Latest Release
Latest Release Date
Created
2021-07-27