luau-data-structures

所属分类:数据结构
开发工具:Lua
文件大小:0KB
下载次数:0
上传日期:2023-10-22 04:06:51
上 传 者sh-1993
说明:  “luau数据结构”是由Roblox Studio社区制作并为其制作的ModuleScript,主要专注于使用来自其他编程语言(如Python、JavaScript,以及将来的更多)的新强大方法添加新的数据结构。
("luau-data-structures" is a ModuleScript made by and for the Roblox Studio community, mainly focused on adding new data structures with new powerful methods from other programming languages (such as Python, JavaScript, and in the future more).)

文件列表:
LICENSE (1068, 2023-10-25)
docs/ (0, 2023-10-25)
docs/about.md (2112, 2023-10-25)
docs/api/ (0, 2023-10-25)
docs/api/arrays.md (2531, 2023-10-25)
docs/api/data-structures.md (2630, 2023-10-25)
docs/api/types.md (2748, 2023-10-25)
docs/changelog.md (2027, 2023-10-25)
docs/index.md (3799, 2023-10-25)
docs/news/ (0, 2023-10-25)
docs/news/v1.3.3-rc-1.md (4570, 2023-10-25)
docs/tutorial/ (0, 2023-10-25)
docs/tutorial/creating-data-structure.md (309, 2023-10-25)
docs/tutorial/installation.md (767, 2023-10-25)
docs/tutorial/key-concepts.md (14, 2023-10-25)
docs/tutorial/understanding-rds-api.md (27, 2023-10-25)
images/ (0, 2023-10-25)
images/rds-banner.png (39874, 2023-10-25)
mkdocs.yml (1895, 2023-10-25)
src/ (0, 2023-10-25)
src/Array/ (0, 2023-10-25)
src/Array/.spec/ (0, 2023-10-25)
src/Array/.spec/Configuration.spec.lua (656, 2023-10-25)
src/Array/.spec/at.spec.lua (653, 2023-10-25)
src/Array/.spec/choice.spec.lua (992, 2023-10-25)
src/Array/.spec/copy.spec.lua (279, 2023-10-25)
src/Array/.spec/entries.spec.lua (756, 2023-10-25)
src/Array/.spec/every.spec.lua (692, 2023-10-25)
src/Array/.spec/filter.spec.lua (578, 2023-10-25)
src/Array/.spec/first.spec.lua (530, 2023-10-25)
src/Array/.spec/flat.spec.lua (519, 2023-10-25)
src/Array/.spec/includes.spec.lua (414, 2023-10-25)
src/Array/.spec/indexOf.spec.lua (552, 2023-10-25)
src/Array/.spec/init.spec.lua (1577, 2023-10-25)
src/Array/.spec/join.spec.lua (620, 2023-10-25)
... ...

![RDS Banner image](https://github.com/ecstatic5/luau-data-structures/blob/master/./images/rds-banner.png) # Introduction RDS is a ModuleScript that adds new data structures to LUAU with powerful and efficient methods to drive your game to success This ModuleScript was made for the Roblox Studio community, not to benefit from this, we only help the community to support it and make it grow, we are not professionals in this but we want to put our grain of sand since roblox does not help us with this kind of things ## Code Examples > Filter only even numbers ```lua local Array = require("") local numbers = Array.new(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) local evenNumbers = numbers:filter(function(el) return el % 2 == 0 end) print(evenNumbers) -- [2, 4, 6, 8, 10] ``` > Obtain the square of all numbers ```lua local Array = require("") local numbers = Array.new(1, 2, 3, 4, 5, 6, 7, 8, 9, 10) local squareNumbers = numbers:map(function(el) return el ^ 2 end) print(squareNumbers) -- [1, 4, 9, 16, 25, 36, 49, 64, 81, 100] ``` > Check if all the elements of an array meet a condition ```lua local Array = require("") local numbers = Array.new(1, 2, 4, 5, 6, 2, 8, 4, 3, 2) print(numbers:every(function(el) return el > 3 end)) -- false (not all elements are greater than 3) ``` ---

Made by and for the community, for you, for everyone.

Scripted by iiAngel and ecstatic5


近期下载者

相关文件


收藏者