turtlestitch/Examples/icecream-visual.xml

1 wiersz
797 KiB
XML
Czysty Zwykły widok Historia

<project name="icecream-visual" app="Snap! 4.0, http://snap.berkeley.edu" version="1"><notes>Lists of lists of functions!&#xD;&#xD;Green flag to display every possible ice cream serving; space to display every possible pizza serving.&#xD;&#xD;Each of the grey ("other") reporters such as SMALL and VANILLA takes a Boolean input. If the input is TRUE, it reports its name as a text string; if the input is FALSE it reports a command script that can be RUN to draw its part of the picture.&#xD;&#xD;CROSSPRODUCT takes a list of lists, each of which is a mutually exclusive option, e.g., [small medium large]. It reports a list of lists in which each sublist contains one item from each of the original option lists:&#xD;&#xD;CROSSPRODUCT [[A B C] [X Y]]&#xD; ==&gt; [[A X] [A Y] [B X] [B Y] [C X] [C Y]]&#xD;&#xD;It&apos;s called "crossproduct" because if the input is viewed as a list of sets, it reports the Cartesian cross product of those sets.&#xD;&#xD;The cool thing is that there can be any number of sets, each with any number of items, because crossproduct is written as a tree recursion rather than as a nested loop.</notes><thumbnail>data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAKAAAAB4CAYAAAB1ovlvAAAgAElEQVR4Xu19CXhUVbbuX3OqUkkqMyQMkUkmQUV8itA2tDz1oYBio+/RTStOtNoODLYX+3qfT9trv25EaW2hFdR2QFEUb9PtiEKrOKHNPE/BJGSeKpXUXPdfp6pCJamYgVRVaM/+vkhS55y991n1u9Zea/17bU2ADWpTJZAgCWhUACZI8uqwigRUAKpASKgEVAAmVPzq4FEBWFhYiHXr1uGtt97CtGnT8Pbbb+Ohhx7C0qVL8dJLL+Gyyy7D119/jXnz5uHXv/41zjzzTKxfvx5LlizBnj170KdPHxQXF2Py5Ml44IEHlOduvfVWzJw5U7n24osvYv78+Th8+LD6DfzAJdCuBtRoNNDr9Tj//POxZcsWvP766zjrrLNw1113KYB74oknFNFlZ2ejoqICq1atwo033oi7774bjz/+OLxeL4xGI9auXas8t3PnTnz66afKtddeew3XXnvtD1z06uu3uwYUxzgMQAFSZJNr8qPVapWPBWCz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