Created
July 28, 2014 12:59
-
-
Save flaviut/fba6df9cb02bf10278d6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proc isSeq[T](v: seq[T]): bool = | |
return true | |
proc isSeq[T](v: T): bool = | |
return false | |
let foo = @[1, 2] | |
let fo1 = "ad" | |
echo fo1.isSeq | |
echo foo.isSeq |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment