<SYSTEM_TASK:>
Given the following text problem statement, write Python code to implement the functionality described below in problem statement
<END_TASK>
<USER_TASK:>
Problem:
I have a list of numpy arrays, and want to check if all the arrays are equal. What is the quickest way of doing this?
<ASSISTANT_TASK:>
Python Code:
import numpy as np
a = [np.array([1,2,3]),np.array([1,2,3]),np.array([1,2,3])]
def all_equal(iterator):
    try:
        iterator = iter(iterator)
        first = next(iterator)
        return all(np.array_equal(first, rest) for rest in iterator)
    except StopIteration:
        return True
result = all_equal(a)
<END_TASK>