Skip to content

Commit eed57f8

Browse files
committed
Add :signatures to satisfies? and instance?.
1 parent b233b13 commit eed57f8

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

pixie/stdlib.pxi

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,8 @@
167167
(def instance? (fn ^{:doc "Checks if x is an instance of t.
168168

169169
When t is seqable, checks if x is an instance of
170-
any of the types contained therein."}
170+
any of the types contained therein."
171+
:signatures [[t x]]}
171172
instance? [t x]
172173
(if (-satisfies? ISeqable t)
173174
(let [ts (seq t)]
@@ -179,7 +180,8 @@
179180
(def satisfies? (fn ^{:doc "Checks if x satisfies the protocol p.
180181

181182
When p is seqable, checks if x satisfies all of
182-
the protocols contained therein."}
183+
the protocols contained therein."
184+
:signatures [[t x]]}
183185
satisfies? [p x]
184186
(if (-satisfies? ISeqable p)
185187
(let [ps (seq p)]

0 commit comments

Comments
 (0)