hubFS: THE place for F#

. . . are you on The Hub?
Welcome to hubFS: THE place for F# Sign in | Join | Help
in Search

Why arn't Vector and Matrix in the Math module IEnumerable?

Last post 08-06-2008, 11:57 by kyagrd. 0 replies.
Sort Posts: Previous Next
  •  08-06-2008, 11:57 6535

    Why arn't Vector and Matrix in the Math module IEnumerable?

    Basic containers in the Math library does not inherit the interfaces IEnumerable and the generic IEnumerable<'a>.

    I think there is no reason not, and it definitely must be IEnumerable just as arrays and lists are.

    When arrays and lists are cast up to obj type, we can still access their element by casting it down to IEnumerable and retriving the element as objects.

    However, for Vector<'a> type, there's no way around if you don't exactlly know the element type 'a statically.

    I hope in the next release they implement the IEnumerable interfaces.

    Thanks.

View as RSS news feed in XML
Powered by Community Server, by Telligent Systems