From ddde5eaacd575ba74fa2ce07c7ca586341f5cae4 Mon Sep 17 00:00:00 2001 From: Stuart Nelson Date: Mon, 12 Jun 2017 10:11:15 +0200 Subject: [PATCH] Use concatMap directly --- ui/app/src/Views/GroupBar/Match.elm | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/ui/app/src/Views/GroupBar/Match.elm b/ui/app/src/Views/GroupBar/Match.elm index c2dedbe4..96295362 100644 --- a/ui/app/src/Views/GroupBar/Match.elm +++ b/ui/app/src/Views/GroupBar/Match.elm @@ -35,8 +35,7 @@ jaro s1 s2 = m = zip (List.range 1 l1) (String.toList s1) |> List.map (Tuple.mapSecond Char.toCode) - |> List.map (charMatch searchLength z2) - |> List.foldl (++) [] + |> List.concatMap (charMatch searchLength z2) ml = List.length m