Closed jcouyang closed 8 years ago
Thank you for this contribution @jcouyang. I think including this in the library is a great idea.
What do you think about implementing the typechecking with a for
-loop? I think the current implementation is a bit hard to understand.
@paldepind not sure if it's easier to understand now, replaced the recur with for loop, validating each item's type by constructing one. also improved the error message.
Thank you for the PR @jcouyang. I'm finally going to merge it now and do a release :smile:
handy ListOf[T] Type as mention in issue #32
validate it is a Array and each element type to be T