
ALT Wide shot of Battersea power station exterior on a sunny day. It's a large brick building with three chimneys visible. There are plants in the foreground and a path leading up to the station entrance.

ALT Interior of the Apple office inside the power station taken from the ninth floor looking down onto the six-story-high atrium. Balconies on either side, light shining through the glass roof. Walkways span the width of the atrium to connect different sides of the building together. Potted trees are placed throughout the space.

ALT Swift code that's reminiscent of Haskell: precedencegroup CurryingPrecedence { lowerThan: FunctionArrowPrecedence associativity: left assignment: false } infix operator ~>: CurryingPrecedence func ~><T, U>(_ f: (T) -> U, _ v: T) -> U { f(v) } func ~><T, U, V>(_ f: @escaping (T, U) -> V, _ v: T) -> ((U) -> V) { { f(v, $0) } } func ~><T, U, V, W>(_ f: @escaping (T, U, V) -> W, _ v: T) -> ((U, V) -> W) { { f(v, $0, $1) } } // ============================================ func add(_ a: Int, _ b: Int, _ c: Int) -> Int { a + b + c } add(5, 15, 1) // Returns 21 add ~> 5 ~> 15 ~> 1 // Returns 21 let addFive = add ~> 5 let addTwenty = addFive ~> 15 addTwenty(1) // Returns 21

ALT Swift code: // We can reference a function to check contains nums.filter(primes.contains) // But we have to make a closure to check not-contains nums.filter { !primes.contains($0) } // We can extract the closure into a new use of the ! operator prefix func !<T>(f: @escaping (T) -> Bool) -> ((T) -> Bool) { { !(f($0)) } } // And now we can reference not-contains directly! nums.filter(!primes.contains)



![Swift code: extension Optional { func isSome(and keyPath: KeyPath<Wrapped, Bool>) -> Bool { self?[keyPath: keyPath] ?? false } } if maybeModel.isSome(and: \.isEnabled) { print("isEnabled") }](https://pbs.twimg.com/media/E9it0gtWEAAbzj_.jpg?name=small&format=webp)











