/usr/share/yacas/scripts/array.rep/code.ys is in yacas 1.3.6-2+b1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | Array'CreateFromList(list):=
[
Local(result,i);
result:=Array'Create(Length(list),0);
i:=1;
While (list != {})
[
result[i]:=Head(list);
i++;
list:=Tail(list);
];
result;
];
Array'ToList(array):= (array[1 .. Array'Size(array) ]);
|