Soon you'll be able to "map" and "filter" using key paths!
struct User {
var name: String
var isAdmin: Bool
}
users.map(\.name)
users.filter(\.isAdmin)
forums.swift.org/t/accepted-se-…
Swift 4.1 conditional conformance is 💖 AMAZING 💖
Here's a non-empty collection type that works with any collection: github.com/pointfreeco/sw…
Wrapping a MutableCollection type gives the non-empty type all those methods for free!
Props to the Swift team! 5.7 has so many incredible features that unlock all new levels of library design.
We’re using constrained opaque types, existentials, partial builder blocks, and more, to make composing app logic look like composing SwiftUI views: github.com/pointfreeco/sw…
It turns out that “removeFirst(n)” was accessing the collection’s count in a precondition, which is an O(length) operation. So @nnnnnnnn and @xwu helped me cobble together a fix: github.com/apple/swift/pu… The benchmark suite results speaks for themselves 😁
🎉 Today we are extremely excited to open-source the Composable Architecture, a library for building Swift applications in a consistent and understandable way, with composition, testing, and ergonomics in mind. github.com/pointfreeco/sw…
We can't wait to see what you build 😃
We are finally working on new @pointfreeco parser episodes and stumbled upon a surprisingly big performance issue: “removeFirst()” is much faster than “removeFirst(1)” on large strings. MUCH faster. For an idea of just how much, I benchmarked it here: github.com/stephencelis/s…
Arc was an early adopter of TCA, and we were grateful for their team’s early endorsement, but they did use it in unconventional ways and maintained a fork that was pretty far behind the actual library. We’re pretty confident that TCA wasn’t the issue here 😄
I don't use my account here for much outside of work, but I should. This should also go without saying, but that's not where we are. Black lives matter. Defund the police. Hold officers accountable for their all too common, disgraceful acts of violence.