https://github.com/jrincayc/ucblogo-code
Revision 16c4e7222dbf786e6378afdcf1bd05a3a483e91e authored by Joshua Cogliati on 22 November 2020, 23:02:19 UTC, committed by GitHub on 22 November 2020, 23:02:19 UTC
ISSUE-67: Pass the output of getc as int.
2 parent s 439651e + b2227ae
Raw File
Tip revision: 16c4e7222dbf786e6378afdcf1bd05a3a483e91e authored by Joshua Cogliati on 22 November 2020, 23:02:19 UTC
Merge pull request #68 from dmalec/ISSUE-67
Tip revision: 16c4e72
firsts
FIRSTS list

	outputs a list containing the FIRST 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.)  This could be written as

		to firsts :list
		output map "first :list
		end

	but is provided as a primitive in order to speed up the iteration
	tools MAP, MAP.SE, and FOREACH.
back to top