Another example from the ty 1.0 blog post...
Charlie Marsh
Visit on X@charliermarsh57K followers
16,077 views
Another example from the ty 1.0 blog post...
Below, `satisfies_all` conjoins an arbitrary number of predicates.
ty infers that `valid_batch` needs an input that has a length and yields integers, accepting `[1, 2, 3]` and rejecting `iter([1, 2, 3])`.
Comments
Comments from the original post on X (Twitter)
No comments yet
