<?xml version="1.0" encoding="utf-8" standalone="yes"?>

<?xml-stylesheet href="./_c74_ref.xsl" type="text/xsl"?>

<!--This is an automatically generated file. DO NOT EDIT THIS FILE DIRECTLY. Rather, use the _ref.xml files found in the 'edits' folder.-->
<c74object name="listfunnel" module="max" category="Lists">
	<digest>
		Index and output list elements
	</digest>
	<description>
		Outputs the elements of an incoming list in the format:
		<br />
		[index] [element]
		<br />
		for each element of the list.
	</description>
	<!--METADATA-->
	<metadatalist>
		<metadata name="author">
			Cycling '74
		</metadata>
		<metadata name="tag">
			Max
		</metadata>
	</metadatalist>
	<!--INLETS-->
	<inletlist>
		<inlet id="0" type="INLET_TYPE">
			<digest>
				list in, Elements Will Be Output Preceded by Their Index
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
		<inlet id="1" type="INLET_TYPE">
			<digest>
				list in, Elements Will Be Output Preceded by Their Index
			</digest>
			<description>
				TEXT_HERE
			</description>
		</inlet>
	</inletlist>
	<!--OUTLETS-->
	<outletlist>
		<outlet id="0" type="OUTLET_TYPE">
			<digest>
				list, (Index, Element)
			</digest>
			<description>
				TEXT_HERE
			</description>
		</outlet>
	</outletlist>
	<!--ARGUMENTS-->
	<objarglist>
		<objarg name="offset" optional="1" type="int">
			<digest>
				Initial offset
			</digest>
			<description>
				An integer argument is used to specify an offset for the first index value. If no argument is present, the list elements are numbered beginning with the default index of 0.
			</description>
		</objarg>
	</objarglist>
	<!--MESSAGES-->
	<methodlist>
		<method name="int">
			<arglist>
				<arg name="input" optional="0" type="int" />
			</arglist>
			<digest>
				Output indexed data
			</digest>
			<description>
				The low index value and the received number are sent out as a two-element list.
			</description>
		</method>
		<method name="float">
			<arglist>
				<arg name="input" optional="0" type="float" />
			</arglist>
			<digest>
				Output indexed data
			</digest>
			<description>
				The low index value and the received number are sent out as a two-element list.
			</description>
		</method>
		<method name="list">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Output indexed data
			</digest>
			<description>
				Each element of the list is indexed and this index is prepended to the list element and sent out the outlet as a two-element list. The input list may contain ints, floats, and symbols (provided that the first element of the list is not a symbol).
			</description>
		</method>
		<method name="anything">
			<arglist>
				<arg name="input" optional="0" type="list" />
			</arglist>
			<digest>
				Output indexed data
			</digest>
			<description>
				Performs the same as <m>list</m>.
			</description>
		</method>
		<method name="offset">
			<arglist>
				<arg name="offset" optional="0" type="int" />
			</arglist>
			<digest>
				Set index offset
			</digest>
			<description>
				The word <m>offset</m> followed by an integer argument is used to specify an offset for the first index value.
			</description>
		</method>
	</methodlist>
	<!--ATTRIBUTES-->
	<!--EXAMPLE-->
	<examplelist>
		<example img="listfunnel.png" caption="Use listfunnel not only for convenience, but also for variable-length lists." />
	</examplelist>
	<!--SEEALSO-->
	<seealsolist>
		<seealso name="funnel" />
		<seealso name="spray" />
	</seealsolist>
	<misc name="Output">
		<entry name="list">
			<description>
				When a list is received in the inlet, <o>listfunnel</o> outputs a two-element list for each element of the input list, consisting of the elements index followed the list element. <o>listfunnel</o> is designed for conveniently replacing a combination of <o>unpack</o> and <o>funnel</o> objects.
			</description>
		</entry>
	</misc>
</c74object>
