Buck: struct()
Support Ukraine. Help Provide Humanitarian Aid to Ukraine.

struct()

This is liable to change in the future.

Creates an immutable struct using the keyword arguments as attributes. It is used to group multiple values and/or functions together. Example:
s = struct(x = 2, y = 3) return s.x + getattr(s, "y")  # returns 5

Arguments

  • kwargs (defaults to None) the struct attributes.