slang-users mailing list

[2006 Date Index] [2006 Thread Index] [Other years]
[Thread Prev] [Thread Next]      [Date Prev] [Date Next]

[slang-users] foreach in one array dimension


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]