Name

remove()

Class

FloatList

Description

Remove an element from the specified index.

Examples

  • FloatList inventory;
    
    void setup() {
      size(200, 200);
      inventory = new FloatList();
      inventory.append(108.6);
      inventory.append(5.8);
      inventory.append(8.2);
      println(inventory);
      inventory.remove(1);
      println(inventory);
    }
    
    
  • FloatList inventory;
    
    void setup() {
      size(200, 200);
      inventory = new FloatList();
      inventory.append(108.6);
      inventory.append(5.8);
      inventory.append(8.2);
      println(inventory);
      float val = inventory.remove(1);
      println("The value " + val + " was removed.");
    }
    
    

Syntax

  • .remove(index)

Return

  • float