Skip to content

Commit

Permalink
Use function notation instead of lambda
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Jan 20, 2025
1 parent 1c50bee commit 51c81d9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions template/src/Elm/Review/Vendor/Diff.elm
Original file line number Diff line number Diff line change
Expand Up @@ -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?
Expand Down

0 comments on commit 51c81d9

Please sign in to comment.