给定一个广义表A=((a),((a)),A),请分别求出其表头、表尾、长度以及深度。

给定一个广义表A=((a),((a)),A),请分别求出其表头、表尾、长度以及深度。
【正确答案】:head(A)=(a)tail(A)=(((a)),A)length(A)=3depth(A)=∞