From 51c81d99c101cee1eb41e06fa0ced9c1a03bbf90 Mon Sep 17 00:00:00 2001 From: Jeroen Engels Date: Tue, 14 Jan 2025 12:23:44 +0100 Subject: [PATCH] Use function notation instead of lambda --- template/src/Elm/Review/Vendor/Diff.elm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template/src/Elm/Review/Vendor/Diff.elm b/template/src/Elm/Review/Vendor/Diff.elm index 4fed3941..683f9bfa 100644 --- a/template/src/Elm/Review/Vendor/Diff.elm +++ b/template/src/Elm/Review/Vendor/Diff.elm @@ -143,11 +143,11 @@ testDiff a b = -- Elm's Array doesn't allow null element, -- so we'll use shifted index to access source. - getA = - \x -> Array.get (x - 1) arrA + getA x = + Array.get (x - 1) arrA - getB = - \y -> Array.get (y - 1) arrB + getB y = + Array.get (y - 1) arrB path = -- Is there any case ond is needed?