[swift-users] TWISt-shout Newsletter 2017-10-02

2017-10-01 Thread Kenny Leung via swift-users
Hi All. Here is your TWISt-shout Newsletter for the week of 2017-09-18 to 2017-09-24 https://github.com/pepperdog/TWISt-shout/blob/master/2017/TWISt-shout-2017-10-02.md Enjoy! -Kenny

Re: [swift-users] Detect if a generic type is numeric

2017-10-01 Thread V T via swift-users
> On 1. Oct 2017, at 22:43, davel...@mac.com wrote: > > > >> On Oct 1, 2017, at 2:32 PM, Glenn L. Austin wrote: >> >>> >>> On Oct 1, 2017, at 8:56 AM, Dave Reed via swift-users >>> wrote: >>> >>> On Sep 21, 2017, at 3:58 PM, V T via

Re: [swift-users] Detect if a generic type is numeric

2017-10-01 Thread Dave Reed via swift-users
> On Oct 1, 2017, at 2:32 PM, Glenn L. Austin wrote: > >> >> On Oct 1, 2017, at 8:56 AM, Dave Reed via swift-users >> wrote: >> >> >>> On Sep 21, 2017, at 3:58 PM, V T via swift-users >>> wrote: >>> >>> Hi there! >>>

Re: [swift-users] Detect if a generic type is numeric

2017-10-01 Thread Glenn L. Austin via swift-users
> On Oct 1, 2017, at 8:56 AM, Dave Reed via swift-users > wrote: > > >> On Sep 21, 2017, at 3:58 PM, V T via swift-users >> wrote: >> >> Hi there! >> >> Is there a best way to check if a given type conforms to numeric protocol >> (Integer or

[swift-users] package graphroot error

2017-10-01 Thread Muhammad Tahir Vali via swift-users
Hello, I've updated to swift 4.0 and downloaded a CL tool swiftenv . Mixing and debugging with different versions , I may have messed up my swift environment variables and ultimately deleted my swift-tools. How do I safely default everything back to working form? swift tools --version error:

Re: [swift-users] Detect if a generic type is numeric

2017-10-01 Thread Dave Reed via swift-users
> On Sep 21, 2017, at 3:58 PM, V T via swift-users > wrote: > > Hi there! > > Is there a best way to check if a given type conforms to numeric protocol > (Integer or FP) at runtime? > > func checkNumeric(_ value: T) { > /* return true if vaiue is Integer or FP