Skip navigation
Another example from the ty 1.0 blog post...
0:00 / 0:17

Another example from the ty 1.0 blog post...

Charlie Marsh

@charliermarsh57K followers

Visit on X

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