[slang-users] foreach in one array dimension
Jörg Sommer
joerg at alea.gnuu.de
Sat Jun 3 17:01:49 EDT 2006
Hi,
is it possible to iterate only in one array dimension?
#v+
define g()
{
foreach( () )
message(string(typeof( () )));
}
g([ ["foo"], ["foo"] ]);
#v-
This sould give "Array_Type Array_Type". It works, if the outer container
is a list "{ [], [] }", but it looks more like a workaround.
Bye, Jörg.
--
Prof. in der Mathematikvorlesung zu einem vergessenen \phi in der
Gleichung: "Klein-\phi macht auch Mist."
More information about the slang-users-l
mailing list