|
gap> f := function()
> local l;
> l := [];
> return l[0];
> end;
function( ) ... end
gap> f();
Error, no method found! For debugging hints type ?Recovery from NoMethodFound
Error, no 1st choice method found for `[]' on 2 arguments at GAPROOT/lib/methsel2.g:LINE called from
return l[0]; at *stdin*:5 called from
<function "f">( <arguments> )
called from read-eval loop at *stdin*:7
type 'quit;' to quit to outer loop
brk> QUIT;
[ Dauer der Verarbeitung: 0.28 Sekunden
(vorverarbeitet)
]
|