Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add sort-by.

  • Loading branch information...
commit e67b6e5cdc2cd467553ffb78723c19354bb2247b 1 parent 19b1fa4
@kivikakk kivikakk authored
Showing with 5 additions and 0 deletions.
  1. +5 −0 lib/boot.rg
View
5 lib/boot.rg
@@ -358,6 +358,11 @@
(defn re-pattern [s]
(.compile Regexp s))
+(defn sort-by [keyfn coll]
+ (-> coll
+ .to_a
+ (.sort_by | keyfn)))
+
(ns rouge.test
(:use rouge.core ruby))
Please sign in to comment.
Something went wrong with that request. Please try again.