removed useless imports

This commit is contained in:
2024-12-12 01:25:44 +01:00
parent 14f445011c
commit 2ca07cc93c
10 changed files with 9 additions and 20 deletions

View File

@@ -1,6 +1,5 @@
open Printf;;
open Buffer;;
open String;;
open Str;;
let rec list_of_lines in_file =
@@ -13,7 +12,7 @@ let rec list_of_lines in_file =
let file_to_2d_array in_file =
let lines = list_of_lines in_file in
let size_x = length @@ List.hd lines in
let size_x = String.length @@ List.hd lines in
let size_y = List.length lines in
let arr = Array.make_matrix size_x size_y '?' in
List.iteri (fun j line -> String.iteri (fun i c -> arr.(j).(i) <- c) line) lines;