Skip to content

Commit 6254b8d

Browse files
committed
made (stream astream) identity
1 parent 96bdcae commit 6254b8d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/jvm/clojure/lang/AStream.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ final synchronized public ISeq seq() {
3535
}
3636

3737
final synchronized public AStream stream() throws Exception {
38-
if (seq == NO_SEQ)
38+
// if (seq == NO_SEQ)
3939
return this;
40-
return RT.stream(seq);
40+
// return RT.stream(seq);
4141
}
4242

4343
final synchronized public Iter iter() {

src/jvm/clojure/lang/RT.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ else if(coll instanceof String)
703703
return Character.valueOf(((String) coll).charAt(n));
704704
else if(coll.getClass().isArray())
705705
return Reflector.prepRet(Array.get(coll, n));
706-
else if(coll instanceof List)
706+
else if(coll instanceof RandomAccess)
707707
return ((List) coll).get(n);
708708
else if(coll instanceof Matcher)
709709
return ((Matcher) coll).group(n);
@@ -758,7 +758,7 @@ else if(coll.getClass().isArray())
758758
return Reflector.prepRet(Array.get(coll, n));
759759
return notFound;
760760
}
761-
else if(coll instanceof List)
761+
else if(coll instanceof RandomAccess)
762762
{
763763
List list = (List) coll;
764764
if(n < list.size())

0 commit comments

Comments
 (0)