I've been thinking about this, too. At one point I had a reason to want an
Array that couldn't be empty (though I can't recall what the reason was now).
Anyway, I think I'd do something like this:
struct NonEmptyCollection : CollectionType {
private var _head: T.Generator.Element? //optional
I’ve been spinning my wheels on this one for a couple of hours and can’t come
up with a way to do it which doesn’t require checking for at least one
potential data inconsistency at runtime with precondition() or assert(), so I’m
wondering if anyone else has a solution.
I have a data type which
+ Michael, who has been working on CMake changes.
On Sat, Jun 25, 2016 at 10:14 AM, Joseph Bell via swift-dev
wrote:
> Confirmed that I can reproduce this on my system (x86_64 Ubuntu14.04) :
> build 1585 failed
> https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/1585/ with
>
> CMake E
+ Michael, who has been working on CMake changes.
On Sat, Jun 25, 2016 at 2:48 PM, Joseph Bell via swift-dev
wrote:
> Howdy,
>
> I noticed in a build today that the output of swift --version has changed.
> Today's build:
>
> swift --version
> Swift version 3.0-dev
> Target: x86_64-unknown-linux-g
Howdy,
I noticed in a build today that the output of swift --version has changed.
Today's build:
swift --version
Swift version 3.0-dev
Target: x86_64-unknown-linux-gnu
Earlier this week:
swift --version
Swift version 3.0-dev (LLVM fc970689d4, Clang 460d629e85, Swift 1f2b5ee7fb)
Target: x86_64-un
Confirmed that I can reproduce this on my system (x86_64 Ubuntu14.04) :
build 1585 failed
https://ci.swift.org/job/oss-swift-package-linux-ubuntu-14_04/1585/ with
CMake Error at cmake/modules/SwiftSharedCMakeConfig.cmake:134 (include):
include could not find load file:
ClangTargets
Call Sta