Focus
Focus copied to clipboard
Optics for Swift
Fetching https://github.com/typelift/Focus error: the package https://github.com/typelift/Focus @ 0.4.0 contains revisioned dependencies: https://github.com/typelift/SwiftCheck.git @ master https://github.com/typelift/Operadics.git @ master
``` import Swiftz import Focus func fanin(_ l: @escaping (A) -> C, _ r: @escaping (B) -> C) -> Function { return Function.arr(l) ||| Function.arr(r) } ``` The above fails...
Is there no way to lens through an optional? I've tried with `Party.lpartyCaterer() • User.userName` and `Party.lpartyCaterer() • _Some • User.userName`, to no avail. ``` swift // A party has...