Skip to content

Commit ab3970c

Browse files
committed
fix(formatting): format list.ark, functional.ark and math.ark
1 parent 1d0c18e commit ab3970c

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

Functional.ark

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,4 @@
6262
# =end
6363
# @author https://github.com/SuperFola
6464
(let recombine (fun (_f _g _h)
65-
(fun (_x &_f &_g &_h)
66-
(_f (_g _x) (_h _x)))))
67-
65+
(fun (_x &_f &_g &_h) (_f (_g _x) (_h _x)))))

List.ark

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136

137137
(while (< _index (len _L)) {
138138
(if (or (nil? _output) (< (@ _L _index) _output))
139-
(set _output (@ _L _index)))
139+
(set _output (@ _L _index)))
140140
(set _index (+ 1 _index)) })
141141
_output }))
142142

@@ -153,7 +153,7 @@
153153

154154
(while (< _index (len _L)) {
155155
(if (or (nil? _output) (> (@ _L _index) _output))
156-
(set _output (@ _L _index)))
156+
(set _output (@ _L _index)))
157157
(set _index (+ 1 _index)) })
158158
_output }))
159159

Math.ark

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -379,8 +379,7 @@
379379
# (print (clamp 6 0 10)) # 6
380380
# =end
381381
# @author https://github.com/SuperFola
382-
(let clamp (fun (_x _min _max)
383-
(max _min (min _x _max))))
382+
(let clamp (fun (_x _min _max) (max _min (min _x _max))))
384383

385384
# @brief Linearly interpolate a value in [0; 1] between two bounds
386385
# @param _x value to interpolate (must be between 0 and 1)
@@ -390,5 +389,4 @@
390389
# (print (lerp 0.22 15 132)) # 40.74
391390
# =end
392391
# @author https://github.com/SuperFola
393-
(let lerp (fun (_x _v0 _v1)
394-
(+ (* (- 1 _x) _v0) (* _x _v1))))
392+
(let lerp (fun (_x _v0 _v1) (+ (* (- 1 _x) _v0) (* _x _v1))))

0 commit comments

Comments
 (0)