Help Contents / Data Structure Primitives / Selectors / butFirsts

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]} 


previous: firsts	next: quoted
