File tree Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Expand file tree Collapse file tree 3 files changed +15
-4
lines changed Original file line number Diff line number Diff line change 1299
1299
(. ref (touch ))
1300
1300
(. ref (get )))
1301
1301
1302
- (def #^{:private true : tag clojure.lang.Closer} *io-context* nil )
1302
+ (def #^{:tag clojure.lang.Closer} *io-context* nil )
1303
1303
1304
1304
(defmacro sync
1305
1305
" transaction-flags => TBD, pass nil for now
1437
1437
eos
1438
1438
(apply f xs)))))))))
1439
1439
1440
+ (defn map
1441
+ " Returns a lazy seq consisting of the result of applying f to the
1442
+ set of first items of each coll, followed by applying f to the set
1443
+ of second items in each coll, until any one of the colls is
1444
+ exhausted. Any remaining items in other colls are ignored. Function
1445
+ f should accept number-of-colls arguments."
1446
+ ([f coll] (seq (map-stream f coll)))
1447
+ ([f c1 c2] (seq (map-stream f c1 c2)))
1448
+ ([f c1 c2 c3] (seq (map-stream f c1 c2 c3)))
1449
+ ([f c1 c2 c3 & colls] (seq (apply map-stream f c1 c2 c3 colls))))
1450
+
1440
1451
(defn mapcat
1441
1452
" Returns the result of applying concat to the result of applying map
1442
1453
to f and colls. Thus function f should return a collection."
Original file line number Diff line number Diff line change 12
12
13
13
package clojure .lang ;
14
14
15
- final public class AStream implements Seqable , Streamable {
15
+ final public class AStream implements Seqable , Streamable , Sequential {
16
16
17
17
static final ISeq NO_SEQ = new Cons (null , null );
18
18
Original file line number Diff line number Diff line change @@ -720,7 +720,7 @@ else if(n == 1)
720
720
721
721
else if (coll instanceof Sequential )
722
722
{
723
- ISeq seq = (( IPersistentCollection ) coll ) .seq ();
723
+ ISeq seq = RT .seq (coll );
724
724
coll = null ;
725
725
for (int i = 0 ; i <= n && seq != null ; ++i , seq = seq .rest ())
726
726
{
@@ -783,7 +783,7 @@ else if(n == 1)
783
783
}
784
784
else if (coll instanceof Sequential )
785
785
{
786
- ISeq seq = (( IPersistentCollection ) coll ) .seq ();
786
+ ISeq seq = RT .seq (coll );
787
787
coll = null ;
788
788
for (int i = 0 ; i <= n && seq != null ; ++i , seq = seq .rest ())
789
789
{
You can’t perform that action at this time.
0 commit comments