Bool

Concurrent Bool Array

The Bool contract is a concurrent array specialized for storing boolean values. It inherits from the Base contract to utilize container functionalities for boolean storage.

Constructor

constructor()

Functions

push

function push(bool elem) public virtual

Add a boolean element to the concurrent array.

  • Parameters:

    • elem: The boolean element to add to the array.

pop

function pop() public virtual returns (bool)

Remove and return the last boolean element from the concurrent array.

get

function get(uint256 idx) public virtual returns (bool)

Retrieve the boolean element at the given index from the concurrent array.

  • Parameters:

    • idx: The index of the boolean element to retrieve.

set

function set(uint256 idx, bool elem) public

Set the boolean element at the given index in the concurrent array.

  • Parameters:

    • idx: The index where the boolean element should be stored.

    • elem: The boolean element to be stored at the specified index.

Last updated