This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // | |
| // Created by ktiays on 2026/1/16. | |
| // Copyright (c) 2026 ktiays. All rights reserved. | |
| // | |
| import SwiftUI | |
| @available(iOS 17.0, *) | |
| public struct AnimatableValues<each Value>: VectorArithmetic where repeat each Value : VectorArithmetic { | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| interface BtreeVisitor<T, TT> { | |
| leaf: (value: T) => TT; | |
| branch: (left: TT, right: TT) => TT; | |
| } | |
| interface Btree<T> { | |
| <TT>(visitor: BtreeVisitor<T, TT>): TT; | |
| } | |
| const leaf = <T>(value: T): Btree<T> => { |