Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

std: generic diff and levenshtein algorithms #166

Merged
merged 1 commit into from
Jan 17, 2022

Conversation

haxscramper
Copy link
Collaborator

  • Add implementation of the generic myers diff and levenshtein edit
    distance algorihtms to be used in testament and spellSuggest.

Existing implementation of the diff algorithm is not generic and can be hardly made into one, due to heavily hardcoded types and unclear API, so I added new one - it might not be as optimized, but it would be much easier to reuse for writing custom diff formatters (e.g. colored)

- Add implementation of the *generic* myers diff and levenshtein edit
  distance algorihtms to be used in `testament` and `spellSuggest`.
@haxscramper haxscramper force-pushed the generic-diff-algorithms branch from cc35156 to 89faafa Compare January 17, 2022 13:14
Copy link
Collaborator

@saem saem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bors r+

@bors
Copy link
Contributor

bors bot commented Jan 17, 2022

Build succeeded:

@bors bors bot merged commit 27474bb into nim-works:devel Jan 17, 2022
@haxscramper haxscramper added the stdlib Standard library label Nov 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stdlib Standard library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants