Skip to content

Commit

Permalink
Use new YS 'eval' std fn in 'strain'
Browse files Browse the repository at this point in the history
  • Loading branch information
ingydotnet committed Oct 10, 2024
1 parent 82a20f4 commit 62a1bd7
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions exercises/practice/strain/.meta/strain.ys
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,3 @@ defn keep(list predicate):

defn discard(list predicate):
remove eval(predicate): list

# XXX: eval targeted to be in ys::std on 0.1.80
defn eval(code):
str("!yamlscript/v0\n$code"):
.ys/compile()
.replace(/(?s)^\(\+\+\+ (.*)\)$/ '$1')
.read-string()
.clojure::core/eval()

0 comments on commit 62a1bd7

Please sign in to comment.