callyral, (edited )
@callyral@pawb.social avatar

Lua function “item” called with argument of type table

The function is the outer part with the parentheses, the table is the inner part with the curly braces. [“attr”] is a table inside the table.

For example, to access (table)>attr>size you would write: table[“attr”][“size”] (assuming the table is named, that is, assigned to a variable called “table”)

  • All
  • Subscribed
  • Moderated
  • Favorites
  • linux@lemmy.ml
  • localhost
  • All magazines
  • Loading…
    Loading the web debug toolbar…
    Attempt #