- Subject: [slang-users] foreach in one array dimension
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- Date: Sat, 3 Jun 2006 21:01:49 +0000 (UTC)
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."
_______________________________________________
To unsubscribe, visit http://jedsoft.org/slang/mailinglists.html
[2006 date index]
[2006 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]