bf

Help Contents logo Mutators bf
count bl

logo.bf :x {:#1}


Outputs a new list containing the tail of the input list, meaning the list without its first member.

Definition:

to logo.bf :x {:#1}
	if set? :x
	[ 
		if local? "#1
		[
			if :#1<0 [error "'Invalid second argument of "BF"']
			while :#1 >= 1 
			[
				if local? word "x.# setmin :x 
				[
					 delete word "x.# setmin :x
				]
				make "#1 :#1 - 1 
			] 
		]
		[ delete word "x.# setmin :x ]
		output :x
	]
	[
		output dll.logo.logobf
	]
end

Examples:

References:

count bl