fuzzyGet to get bestMatch and value in ifLet at the same time

This commit is contained in:
2024-12-05 21:04:11 -06:00
parent 9619563210
commit a1cdf75140
4 changed files with 40 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
(function _testFuzzyGet []
(let [:kiss.FuzzyMap<String> m [=>"glurg" "burgle"]]
(assertLet [(Found "glurg" "burgle" _) (fuzzyGet m "gurg")
NotFound (fuzzyGet m "totally different string")]
(Assert.pass))))