[swift-users] Type inference issue with map and filter chained

2017-09-24 Thread Trevör ANNE DENISE via swift-users
Hello everyone, I found this on StackOverflow : https://stackoverflow.com/questions/46381752/swift-4-methods-chaining/ Is this a bug of Swift 4 or is this normal ? I don't understand why the problem only happens when

[swift-users] Extending 2D arrays of genetic type

2017-07-30 Thread Trevör ANNE DENISE via swift-users
I am trying to extend a 2D array, doing something like this: extension Array where Element == Array { } But this doesn't work ! Is there a way to do this ? Thank you ! :) Trevör ___ swift-users mailing list swift-users@swift.org

Re: [swift-users] Protocol associated type constraints in classes and structs ?

2017-02-10 Thread Trevör Anne Denise via swift-users
> Le 10 févr. 2017 à 18:04, Trevör Anne Denise a > écrit : > > Hi Matthew, > > Thanks for this quick reply, happy to see that this is something the > community is working on, this will make protocols even more useful! > > Since this isn't implemented yet, I am

[swift-users] Protocol associated type constraints in classes and structs ?

2017-02-10 Thread Trevör ANNE DENISE via swift-users
Hello everyone ! I am currently writing a project where I would like to do something similar to this: protocol ProtocolA { associatedtype U var someVariable : U { get set } func someFunction(_ x:U) -> U } class SomeClass { var someProperty : ProtocolA where ProtocolA.U == T }

[swift-users] LLDB can't access the value of an associated type variable

2016-11-14 Thread Trevör ANNE DENISE via swift-users
Hello, I have an issue with a project, I was trying to inspect the value of a constant of type [GeneType], this type is defined as an associatedtype of a protocol, so there is no explicit type for it, just a constraint to be Hashable : > protocol GAStandardGenomeRepresentable { > >