Skip to content

Commit bff549d

Browse files
committed
chore: format code
1 parent 8d2d9c5 commit bff549d

2 files changed

Lines changed: 21 additions & 16 deletions

File tree

Dict.ark

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -294,13 +294,12 @@
294294
(mut _output "[")
295295
(mut _i 0)
296296
(while (< _i (len _L)) {
297-
(set _output
298-
(+
299-
_output
300-
(_valAsJson (@ _L _i))
301-
(if (= (len _L) (+ 1 _i))
302-
""
303-
", ")))
297+
(set _output (+
298+
_output
299+
(_valAsJson (@ _L _i))
300+
(if (= (len _L) (+ 1 _i))
301+
""
302+
", ")))
304303
(set _i (+ 1 _i)) })
305304

306305
(+ _output "]") }))
@@ -328,13 +327,12 @@
328327
(mut _as_str "")
329328
(set _i 0)
330329
(while (< _i (len _output)) {
331-
(set _as_str
332-
(+
333-
_as_str
334-
(@ _output _i)
335-
(if (= (len _output) (+ 1 _i))
336-
""
337-
", ")))
330+
(set _as_str (+
331+
_as_str
332+
(@ _output _i)
333+
(if (= (len _output) (+ 1 _i))
334+
""
335+
", ")))
338336
(set _i (+ 1 _i)) })
339337

340338
(+ "{" _as_str "}") }))

String.ark

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -545,8 +545,15 @@
545545
(let _dist [
546546
(+ 1 (@@ _edit_distances (- _i 1) _j))
547547
(+ 1 (@@ _edit_distances _i (- _j 1)))
548-
(+ (if (= (@ _str1 (- _i 1)) (@ _str2 (- _j 1))) 0 1) (@@ _edit_distances (- _i 1) (- _j 1))) ])
549-
(@@= _edit_distances _i _j
548+
(+
549+
(if (= (@ _str1 (- _i 1)) (@ _str2 (- _j 1)))
550+
0
551+
1)
552+
(@@ _edit_distances (- _i 1) (- _j 1)))])
553+
(@@=
554+
_edit_distances
555+
_i
556+
_j
550557
(if (and (< (@ _dist 0) (@ _dist 1)) (< (@ _dist 0) (@ _dist 2)))
551558
(@ _dist 0)
552559
(if (and (< (@ _dist 1) (@ _dist 0)) (< (@ _dist 1) (@ _dist 2)))

0 commit comments

Comments
 (0)