From 6860b6e83f2c6be5e59253105cf397c5b27b1590 Mon Sep 17 00:00:00 2001 From: DJ O'Leary Date: Mon, 3 Mar 2025 01:14:16 +0100 Subject: feat: Move 2024 php files --- 2024/OCaml/lib/day_04/php/Input.php | 25 ------------------------- 1 file changed, 25 deletions(-) delete mode 100644 2024/OCaml/lib/day_04/php/Input.php (limited to '2024/OCaml/lib/day_04/php/Input.php') diff --git a/2024/OCaml/lib/day_04/php/Input.php b/2024/OCaml/lib/day_04/php/Input.php deleted file mode 100644 index f7e03c1..0000000 --- a/2024/OCaml/lib/day_04/php/Input.php +++ /dev/null @@ -1,25 +0,0 @@ -fileName, use_include_path: true); - $this->contents = $contents === false ? "" : $contents; - } - - public function toGrid(): Grid - { - $lines = explode("\n", $this->contents); - $gridArray = array_map( - callback: fn(string $line): array => str_split(trim($line)), - array: $lines - ); - - return new Grid($gridArray); - } -} -- cgit v1.2.3