Skip to content

Instantly share code, notes, and snippets.

Add

from lpython import i32

def test_set_add():
    s1: set[i32] = {0}
    i: i32
    total: i32 = 10000000

    # https://en.wikipedia.org/wiki/Lehmer_random_number_generator