1
0
mirror of https://github.com/janet-lang/janet synced 2024-06-16 10:19:55 +00:00

Wrap both reverse and reversed docstring to 80 chr

This commit is contained in:
Josef Pospíšil 2020-06-25 09:43:10 +02:00
parent 1b420f69aa
commit 7b033a48a3

View File

@ -1198,7 +1198,8 @@
res)
(defn reverse
"Reverses the order of the elements in a given array or tuple and returns it mutated."
"Reverses the order of the elements in a given array or tuple and returns it
mutated."
[t]
(def len-1 (- (length t) 1))
(def half (/ len-1 2))
@ -1211,7 +1212,8 @@
t)
(defn reversed
"Reverses the order of the elements in a given array or tuple and returns a new array."
"Reverses the order of the elements in a given array or tuple and returns
a new array."
[t]
(def len (length t))
(var n (- len 1))