static <A> S levenWithSwapsClosestIC(Map<S, A> map, S s) { ret levenWithSwapsClosestIC(keys(map), s); } sS levenWithSwapsClosestIC(Collection<S> l, S s) { int limit = Integer.MAX_VALUE-1; new Lowest<S> best; for (S key : unnull(l)) { limit = levenWithSwaps_limitedIC(s, key, limit); best.put(key, limit); } ret best!; } static <A> S levenWithSwapsClosestIC(S s, Map<S, A> map) { ret levenWithSwapsClosestIC(map, s); } sS levenWithSwapsClosestIC(S s, Collection<S> l) { ret levenWithSwapsClosestIC(l, s); }
Began life as a copy of #1008052
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1025879 |
| Snippet name: | levenWithSwapsClosestIC [dev., needs levenWithSwaps_limitedIC] - get Levenshtein-with-swaps-closest key in map or element in list (ignoring case) |
| Eternal ID of this version: | #1025879/2 |
| Text MD5: | 17d3102262eaebe684c5ef1b42d3d5b6 |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-10-28 11:27:09 |
| Source code size: | 552 bytes / 21 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 419 / 459 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |