risor-io / risor

Fast and flexible scripting for Go developers and DevOps.
https://risor.io
Apache License 2.0
576 stars 24 forks source link

Optional "less" function may be provided to the `sorted` builtin #222

Closed myzie closed 2 months ago

myzie commented 2 months ago
>>> [2, 1, 4] | sorted(func(a, b) { b < a })
[4, 2, 1]
codecov[bot] commented 2 months ago

Codecov Report

Attention: Patch coverage is 50.00000% with 10 lines in your changes are missing coverage. Please review.

Project coverage is 32.06%. Comparing base (fde206f) to head (f815698).

Files Patch % Lines
builtins/builtins.go 50.00% 5 Missing and 5 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #222 +/- ## ========================================== + Coverage 31.97% 32.06% +0.08% ========================================== Files 121 121 Lines 15097 15114 +17 ========================================== + Hits 4827 4846 +19 + Misses 9685 9678 -7 - Partials 585 590 +5 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.