Mutators

App Inventor 2 introduced a new feature that allows certain blocks to expand, shrink, or even change their functionality.

Any block that has a blue box with a white gear on top that matches the image to the right is considered a mutator block.

What does a mutator do?

Mutators change shape. By clicking the blue icon, the user can drag additional smaller blocks into the larger mutator block, thus changing the shape and functionality of the original block. Clicking the icon again will minimize the extra blocks window and show the modified block.

The example below shows the min mutator block:

Explanation of the min mutator block.

The user wants to find the minimum number of a list of 3 values. Currently there is only space for 2 to connect to the min block.

To fix this, the user clicks the blue gear icon on the min block and drags another item over.

Now there are three sockets for blocks to plug into.

What are the different mutators?