Implement a linked list from scratch.
Create a singly linked list supporting append, prepend, delete, get, and to_list operations without using Python's built-in linked-list implementation. The input is a list of operation dictionaries, and the output contains each operation's result: null for insertions, a boolean for deletion, a value or null for lookup, and an array for traversal. For example, [append(4), prepend(2), get(1), to_list()] returns [null, null, 4, [2, 4]]; deleting 2 returns true and leaves [4].
delete removes only the first matching valuedef run_linked_list(operations):