refactor; remove the term interface
This commit is contained in:
@@ -29,8 +29,8 @@ def list_to_matrix(lst: list[int], cols: int) -> list[list[int]]:
|
||||
return [lst[i:i + cols] for i in range(0, len(lst), cols)]
|
||||
|
||||
|
||||
def matrix_transpose(interface: list[list[int]]) -> list[list[int]]:
|
||||
return [list(row) for row in zip(*interface)]
|
||||
def matrix_transpose(mat: list[list[int]]) -> list[list[int]]:
|
||||
return [list(row) for row in zip(*mat)]
|
||||
|
||||
|
||||
def int_array_to_bytes(int_arr: list[int], byte_size: int = 2) -> bytes:
|
||||
|
||||
Reference in New Issue
Block a user