Skip to content

feat(imports/table): map#35

Merged
antond15 merged 1 commit intoCommunityOx:mainfrom
mikigoalie:map
Aug 12, 2025
Merged

feat(imports/table): map#35
antond15 merged 1 commit intoCommunityOx:mainfrom
mikigoalie:map

Conversation

@mikigoalie
Copy link

Mapping over table

eg

local tbl = { a = 1, b = 2, c = 3 }

local mappedTable = lib.table.map(tbl, function(k, v)
  return v * 2
end)

-- mappedTable = { a = 2, b = 4, c = 6 }

Copy link
Member

@antond15 antond15 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@antond15 antond15 merged commit 65813e7 into CommunityOx:main Aug 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants