Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 254 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 254 Bytes

contracts

Example

@enforce("a", is_sorted)
@enforce("b", is_sorted)
@enforce("return", is_sorted)
@enforce("a", "b", "return", equal_length)
def sorted_safe_zip(a: List[A], b: List[B]) -> List[Tuple[A, B]]:
    return list(zip(a, b))