Up

_envListInPkg

Return a list of a package content

Thus, all functions, all types and all global variables are returned.
About types, even created with struct or typedef are returned.
About functions, even in a struct or a typedef (fields definition) are also returned.

Prototype :

fun [Chn S] [[S S I] r1]

Return : [[S S I] r1] A list of all items. For each item :

It returns nil if error or package not found in this channel.

Error :

See also :

Example :

fun printEnv (l)=
	if l == nil then
		0
	else
	(
		_fooS sprintf "name = %s  type = %s  arity = %i  pkg = %s" hd l;
		printEnv tl l
	);;
	
fun main ()=
	_showconsole;
	printEnv _envList _channel;
	0;;

Note :

The local variables are not returned (this is logic ...).

WARNING : this function can take a long time before return.

The list size could be greater than thousands of elements.