Skip to content

Commit

Permalink
core: Add ys::std/rx for creating regex pattern from string
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Jun 18, 2024
1 parent bdc6a84 commit 3c382aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions core/src/ys/std.clj
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,9 @@
(range x (inc y))
(range x (dec y) -1)))

(defn rx [s]
(re-pattern s))

(defn say [& xs]
(apply clojure.core/println xs))

Expand Down

0 comments on commit 3c382aa

Please sign in to comment.