We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11c33f5 commit 13b0fbcCopy full SHA for 13b0fbc
Clojure/Clojure/Lib/RT.cs
@@ -777,6 +777,17 @@ private static ISeq seqFrom(object coll)
777
throw new ArgumentException("Don't know how to create ISeq from: " + coll.GetType().FullName);
778
}
779
780
+ [System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Naming", "CA1709:IdentifiersShouldBeCasedCorrectly", MessageId = "can")]
781
+ static public bool canSeq(object coll)
782
+ {
783
+ return coll == null
784
+ || coll is ISeq
785
+ || coll is Seqable
786
+ || coll.GetType().IsArray
787
+ || coll is String
788
+ || coll is IEnumerable;
789
+ }
790
+
791
static IEnumerable NullIterator()
792
{
793
yield break;
0 commit comments