butFirsts

HC Data Structure Primitives Selectors butFirsts
firsts bFs

butFirsts list
bFs list


outputs a list containing the butFirst of each member of the input list. It is an error if any member of the input list is empty. (The input itself may be empty, in which case the output is also empty.) Array support added in 4.689. This could be written as

to butfirsts :list
	output map "butfirst :list
end

but is provided as a primitive in order to speed up the iteration tools MAP, map_se, and foreach.

Example:

show bfs [[Ha llo][Wor ld]]	;[[llo][ld]]
show bfs {{Ha llo}[Wor ld]}		;{{llo}[ld]}

Example:

References:

firsts bFs