Modding
Discord Wishlist on Steam

Library›Lists

Smallest

fn/game.Smallest

The smallest number of a list and where it is (the first is 0); -1 for an empty list.

Smallestalllistsmallestindex
Does
An action: done when the run reaches it
Runs
On every machine
Listed under
Library › Lists
In a file
fn/game.Smallest

Pins

  • inlista list

    The list.

  • outsmallesta number

    Smallest.

  • outindexa whole number

    Index.

How it is made

Its body, as the bench opens it read-only. Copy into my mod on the bench makes a copy to change. The library's file is lists.graph.json.

StartalllistFor eachlistLoop bodyDoneitemindexbest<at<ORBranchconditiontruefalsebest =valuevalueat =valuevaluebestatReturnallsmallestindex
Smallest

Built from