Skip to content

Commit fed04da

Browse files
committed
Merge pull request #248 from thomasmulvaney/add-set-pred
added set predicate
2 parents 897e693 + 71d65fa commit fed04da

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pixie/stdlib.pxi

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,7 @@ If further arguments are passed, invokes the method named by symbol, passing the
801801
(defn keyword? [v] (instance? Keyword v))
802802

803803
(defn list? [v] (instance? PersistentList v))
804+
(defn set? [v] (instance? PersistentHashSet v))
804805
(defn map? [v] (satisfies? IMap v))
805806
(defn fn? [v] (satisfies? IFn v))
806807

pixie/vm/stdlib.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,6 @@ def _load_file(filename, compile=False):
420420
import pixie.vm.reader as reader
421421
import pixie.vm.libs.pxic.writer as pxic_writer
422422
import os.path as path
423-
from pixie.vm.persistent_vector import EMPTY as EMPTY_VECTOR
424423
import os
425424

426425

@@ -826,4 +825,4 @@ def _set_current_var_frames(self, frames):
826825
"""(-set-current-var-frames frames)
827826
Sets the current var frames. Frames should be a cons list of hashmaps containing mappings of vars to dynamic
828827
values. Setting this value to anything but this data format will cause undefined errors."""
829-
code._dynamic_vars.set_current_frames(frames)
828+
code._dynamic_vars.set_current_frames(frames)

0 commit comments

Comments
 (0)