[swift-corelibs-dev] Foundation and NSDecimal

2016-09-27 Thread Alex Blewitt via swift-corelibs-dev
The Framework function NS_INLINE BOOL NSDecimalIsNotANumber(const NSDecimal *dcm) has been imported into Swift on both Darwin and Linux as :type lookup NSDecimalIsNotANumber @discardableResult func NSDecimalIsNotANumber(_ dcm: Swift.UnsafePointer) -> Swift.Bool :type lookup NSDecimalIsNotANumb

[swift-corelibs-dev] Collection.map doesn't call `makeIterator()`

2016-09-27 Thread Tim Vermeulen via swift-corelibs-dev
The implementation of Collection.map can be found here: https://github.com/apple/swift/blob/master/stdlib/public/core/Collection.swift#L1265-L1286 It uses repeated subscripts, rather than `makeIterator()`. Isn’t this a problem? I overloaded `makeIterator` on a custom collection once (I think it