1
0
mirror of https://github.com/janet-lang/janet synced 2025-01-15 01:45:41 +00:00

Update boot.janet

This commit is contained in:
John Gabriele 2021-02-23 22:30:42 -05:00 committed by GitHub
parent 0e44ce5cba
commit be7dab4d17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -787,7 +787,7 @@
(defn sort-by (defn sort-by
``Returns `ind` sorted by calling ``Returns `ind` sorted by calling
a function `f` on each element and comparing the result with <.`` a function `f` on each element and comparing the result with `<`.``
[f ind] [f ind]
(sort ind (fn [x y] (< (f x) (f y))))) (sort ind (fn [x y] (< (f x) (f y)))))
@ -801,7 +801,7 @@
(defn sorted-by (defn sorted-by
``Returns a new sorted array that compares elements by invoking ``Returns a new sorted array that compares elements by invoking
a function `f` on each element and comparing the result with <.`` a function `f` on each element and comparing the result with `<`.``
[f ind] [f ind]
(sorted ind (fn [x y] (< (f x) (f y))))) (sorted ind (fn [x y] (< (f x) (f y)))))