repo stringclasses 302
values | file_path stringlengths 18 241 | language stringclasses 2
values | file_type stringclasses 4
values | code stringlengths 76 697k | tokens int64 10 271k |
|---|---|---|---|---|---|
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/LimitedTextInput.luau | luau | .luau | local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local TextInput = require(StudioComponents.TextInput)
local getState = require(StudioComp... | 636 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Loading.luau | luau | .luau | -- Written by @boatbomber
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local getMotionState = require(StudioComponentsUtil.getMotionSt... | 1,036 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/MainButton.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local Button = requir... | 205 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/ProgressBar.luau | luau | .luau | -- Written by @boatbomber
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local getMotionState = require(StudioComponentsUtil.getMotionSt... | 422 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/ScrollFrame.luau | luau | .luau | -- Written by @boatbomber
-- Modified by @mvyasu
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local BaseScrollFrame = require(StudioCo... | 759 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Shadow.luau | luau | .luau | -- Written by @boatbomber
type ShadowProperties = {
Side: string,
Transparency: number?,
[any]: any,
}
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:Fin... | 576 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Slider.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local BoxBorder = req... | 1,521 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/TextInput.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local BoxBorder = req... | 970 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/TextInputAccented.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local BoxBorder = req... | 1,028 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/TextInputHighlighted.luau | luau | .luau | local PluginDebugService = game:GetService("PluginDebugService")
-- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script.Parent.Parent.Parent --script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:WaitForChild("Packages"):WaitForChild("Fusion"))
local Highlighter =... | 1,343 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Title.luau | luau | .luau | -- Written by @boatbomber
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local getState = require(StudioComponentsUtil.getState)
local t... | 452 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/constants.luau | luau | .luau | return {
CurvedBoxes = true,
CornerRadius = UDim.new(0, 2),
TextSize = 14,
} | 28 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/getDragInput.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
--[[
1. onInputBegan
setState({ Dragging = true })
if widget then
globalConnection = RunService.Heartbeat(() => onInput(widget.relativePosition))
else
globalConnection = InputService.InputChanged(() => onInput(input.Position))
2. onInpu... | 1,267 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/getModifier.luau | luau | .luau | local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local Computed = Fusion.Computed
local unwrap = require(script.Parent.unwrap)
local types = require(script.Parent.types)
type modifierInput = {
Enabled: types.CanBeState<boolean>?,
Hovering: type... | 298 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/getMotionState.luau | luau | .luau | local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local Computed = Fusion.Computed
local unwrap = require(script.Parent.unwrap)
local types = require(script.Parent.types)
-- this technically could be changed later on in a way that
-- allows people... | 275 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/getSelectedState.luau | luau | .luau | local unwrap = require(script.Parent.unwrap)
local types = require(script.Parent.types)
type GetSelectedStateProperties = {
Value: types.Value<any>?,
Options: types.CanBeState<{any}>?,
OnSelected: ((selectedOption: any)->nil)?,
}
return function(props: GetSelectedStateProperties): ()->any
return function()
loca... | 159 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/getState.luau | luau | .luau | local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local unwrap = require(script.Parent.unwrap)
local types = require(script.Parent.types)
type stateOrAny = types.StateObject<any> | any
return function(inputValue: stateOrAny, defaultValue: stateOrA... | 182 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/stripProps.luau | luau | .luau | return function(props, exclude)
local export = table.clone(props)
for _, k in ipairs(exclude) do
export[k] = nil
end
return export
end
| 41 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/themeProvider.luau | luau | .luau | local types = require(script.Parent.types)
type styleStyleGuideColor = Enum.StudioStyleGuideColor | types.StateObject<Enum.StudioStyleGuideColor>
type styleGuideModifier = Enum.StudioStyleGuideModifier | types.StateObject<Enum.StudioStyleGuideModifier>
type computedOrValue = types.Computed<Color3> | types.Value<Color3... | 860 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/types.luau | luau | .luau | --!strict
-- This is a duplicate of Fusion's PubTypes module because for whatever reason type checking doesn't like :FindFirstAncestorWhichIsA()
-- While not a pretty solution, it's the easier solution without causing a huge mess within the components
-- If the components are updated to use a newer version of Fusion,... | 1,149 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/Util/unwrap.luau | luau | .luau | return function(x: any, useDependency: boolean?): any
if typeof(x)=="table" and x.type=="State" then
return x:get(useDependency)
end
return x
end | 41 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/VerticalCollapsibleSection.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local VerticalExpandi... | 1,539 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Components/StudioComponents/VerticalExpandingList.luau | luau | .luau | -- Roact version by @sircfenner
-- Ported to Fusion by @YasuYoshida
local Plugin = script:FindFirstAncestorWhichIsA("Plugin")
local Fusion = require(Plugin:FindFirstChild("Fusion", true))
local StudioComponents = script.Parent
local StudioComponentsUtil = StudioComponents:FindFirstChild("Util")
local Background = re... | 514 |
Ultrasonic1209/Zappy | Ultrasonic1209-Zappy-d896365/src/Zappy/init.server.luau | luau | .luau | --[[
MIT License
Copyright (c) 2024 Ultrasonic54321
Copyright (c) 2022 Yasu Yoshida
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the ri... | 2,978 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/.lune/pilot-generate.luau | luau | .luau | -- Alias for ./src/main.luau
local process = require("@lune/process")
local callback = require("../source/main")
callback(process.args)
| 30 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/ar_input.luau | luau | .luau | return require("ar_input") :: {
getKeyDown: (any, any) -> ...any,
getMouseDown: (any, any) -> ...any,
map: (any) -> ...any,
}
| 42 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/coordinate.luau | luau | .luau | --[[
An array of 4 `Vector2`s, the first being the min & max ux, the second being the min & max uy, the third being the min and max sx, and the fourth being the min and max sy
]]
export type CoordinateBounds = { Vector2 }
return require("coordinate") :: {
new: (ux: number, uy: number, sx: number, sy: number, inPlanet... | 226 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/fs.luau | luau | .luau | return (require("fs") :: any) :: typeof(setmetatable(({} :: any) :: FileSystemRoot, ({} :: any) :: FileSystem))
| 30 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Debugging/Exceptions.luau | luau | .luau | -- Handling exceptions
local TYPES = {
NO_CANVAS_FOUND = "No canvas found, initialize the engine's canvas using Engine:CreateCanvas().",
NO_RIGIDBODIES_FOUND = "No rigid bodies found on start.",
PROPERTY_NOT_FOUND = "Invalid Argument #1. Property not found.",
INVALID_CONSTRAINT_TYPE = "Received Invalid Constraint ... | 339 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Debugging/Restrict.luau | luau | .luau | return function (custom)
if custom then
error("[Nature2D]: This method cannot be used with custom RigidBodies", 2)
end
end
| 35 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Debugging/TypeErrors.luau | luau | .luau | -- Handling type errors
return function (arg: string, param, pos: number, expected: string)
if typeof(param) ~= expected then
error(
string.format(
"[Nature2D]: Invalid Argument #%s. Expected type %q for %s, got %q",
tostring(pos),
expected,
arg,
typeof(param)
),
2
)
end
end | 90 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Physics/Constraint.luau | luau | .luau | -- Constraints keep two points together in place and maintain uniform distance between the two.
-- Constraints and Points together join to keep a RigidBody in place hence making both Points and Constraints a vital part of the library.
-- Custom constraints such as Ropes, Rods, Bridges and chains can also be made.
-- Po... | 1,454 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Plugins/MouseConstraint.luau | luau | .luau | local UserInputService = game:GetService("UserInputService")
return function (engine: { any }, range: number)
local held = nil
local connections = {}
connections.InputBegan = UserInputService.InputBegan:Connect(function(input, processedEvent)
if processedEvent then return end
if input.UserInputType == Enum.Us... | 355 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Plugins/Quad.luau | luau | .luau | -- Returns a quadrilateral structure for Custom RigidBodies given 4 points
return function (a: Vector2, b: Vector2, c: Vector2, d: Vector2)
return {
{ a, b, false },
{ b, c, false },
{ c, d, false },
{ d, a, false },
{ a, c, true },
{ b, d, true }
}
end
| 100 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Plugins/Triangle.luau | luau | .luau | -- Returns a triangular structure for Custom RigidBodies given 3 points
return function (a: Vector2, b: Vector2, c: Vector2)
return {
{ a, b, false },
{ a, c, false },
{ b, c, false }
}
end
| 67 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Plugins/init.luau | luau | .luau | return {
MouseConstraint = require("@self/MouseConstraint"),
Quad = require("@self/Quad"),
Triangle = require("@self/Triangle"),
}
| 32 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Utilities/Janitor/GetPromiseLibrary.luau | luau | .luau | -- TODO: When Promise is on Wally, remove this in favor of just `script.Parent.Parent:FindFirstChild("Promise")`.
local ReplicatedFirst = game:GetService("ReplicatedFirst")
local ReplicatedStorage = game:GetService("ReplicatedStorage")
local ServerScriptService = game:GetService("ServerScriptService")
local ServerStora... | 347 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Utilities/Janitor/Symbol.luau | luau | .luau | -- This only exists because the LSP warns Key `__tostring` not found in type `table?`.
local function Symbol(Name: string)
local self = newproxy(true)
local Metatable = getmetatable(self)
function Metatable.__tostring()
return Name
end
return self
end
return Symbol | 65 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Utilities/Line.luau | luau | .luau | -- This utility is used to render a constraint on the screen.
-- Services and utilities
local Globals = require("../Constants/Globals")
-- Create the constraint's instance and apply properties
local function draw(
hyp: number,
origin: Vector2,
thickness: number,
parent: Instance,
color: Color3,
l: Frame?,
imag... | 398 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Utilities/Quadtree.luau | luau | .luau | -- This utility is used in Collision Detection
-- Quadtree data structure
-- Services and utilities
local Types = require("../Types")
local Quadtree = {}
Quadtree.__index = Quadtree
-- Calculate sub-divisions of a node
local function GetDivisions(position: Vector2, size: Vector2)
return {
position,
position + V... | 893 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/nature2d/Utilities/Signal.luau | luau | .luau | -- -----------------------------------------------------------------------------
-- Batched Yield-Safe Signal Implementation --
-- This is a Signal class which has effectively identical behavior to a --
-- normal RBXScriptSignal, with the only difference being a couple extra ... | 1,874 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/octotree.luau | luau | .luau | export type Octree<T> = {
ClearAllNodes: (self: Octree<T>) -> (),
GetAllNodes: (self: Octree<T>) -> { Node<T> },
ForEachNode: (self: Octree<T>) -> () -> Node<T>?,
FindFirstNode: (self: Octree<T>, object: T) -> Node<T>?,
CountNodes: (self: Octree<T>) -> number,
CreateNode: (self: Octree<T>, position: Vector3, obje... | 410 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/partdata.luau | luau | .luau | type FaceOpacities = {
[Enum.NormalId]: {
Internal: "Push" | "Pull" | "Opaque",
External: "Push" | "Pull" | "Opaque",
} | "Exit" | "Enter",
}
type ClassType = "Natural" | "Craftable" | "Tool" | "Unused"
type Category = "Logic" | "Tools" | "Weapons" | "Electrical" | "Templates" | "Propulsion" | "Resources" | stri... | 468 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/players.luau | luau | .luau | type Players = {
GetUserId: (self: Players, username: string) -> number,
GetUsername: (self: Players, userId: number) -> string,
}
return require("players") :: Players
| 43 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/repr.luau | luau | .luau | --[=[
```lua
local myTable = {
hello = "repr",
usefulness = 9001,
isEasyToUse = true,
array = {"numerical", "arrays", "are", "easy"},
land = workspace["a b c"]["1 2 3"],
subTables = {
moreInfo = "calls itself recursively to print sub-tables"
},
usesToString = {__tostring = function () return "__tostring funct... | 437 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/concat.luau | luau | .luau | --!strict
local None = require("../None")
--[=[
@function concat
@within Array
@param ... ...any -- The arrays to concatenate.
@return {T} -- The concatenated array.
Joins multiple arrays together into a single array.
#### Aliases
`join`, `merge`
```lua
local table1 = { 1, 2, 3 }
local table2 = { 4, 5, ... | 229 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/concatDeep.luau | luau | .luau | --!strict
local CopyDeep = require("./copyDeep")
local None = require("../None")
--[=[
@function concatDeep
@within Array
@param ... ...any -- The arrays to concatenate.
@return {T} -- The concatenated array.
Joins multiple arrays together into a single array, with deep copies of all
nested arrays.
#### Alia... | 301 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/count.luau | luau | .luau | --!strict
local Util = require("../Util")
--[=[
@function count
@within Array
@param array {T} -- The array to count the number of items in.
@param predicate? (value: T, index: number, array: {T}) -> any -- The predicate to use to filter the array.
@return number -- The number of items in the array.
Counts the... | 249 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/difference.luau | luau | .luau | --!strict
local T = require("../Types")
local toSet = require("./toSet")
local toArray = require("../Set/toArray")
local setDifference = require("../Set/difference")
--[=[
@function difference
@within Array
@param array Array<V> -- The array to compare.
@param ... ...Array<V> -- The arrays to compare against... | 265 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/differenceSymmetric.luau | luau | .luau | --!strict
local T = require("../Types")
local toSet = require("./toSet")
local toArray = require("../Set/toArray")
local setDifferenceSymmetric = require("../Set/differenceSymmetric")
--[=[
@function differenceSymmetric
@within Array
@param array Array<V> -- The array to compare.
@param ... ...Array<V> -- Th... | 290 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/equals.luau | luau | .luau | --!strict
local Util = require("../Util")
local function compare(a, b)
if type(a) ~= "table" or type(b) ~= "table" then
return a == b
end
local aLength = #a
if #b ~= aLength then
return false
end
for i = 1, aLength do
if a[i] ~= b[i] then
return false
end
end
return true
end
--[=[
@function eq... | 321 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/equalsDeep.luau | luau | .luau | --!strict
local Util = require("../Util")
local function compareDeep(a, b)
if type(a) ~= "table" or type(b) ~= "table" then
return a == b
end
local aLength = #a
if #b ~= aLength then
return false
end
for i = 1, aLength do
if not compareDeep(a[i], b[i]) then
return false
end
end
return true
end
... | 368 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/filter.luau | luau | .luau | --!strict
local Util = require("../Util")
--[=[
@function filter
@within Array
@param array {T} -- The array to filter.
@param filterer? (value: T, index: number, array: {T}) -> any -- The callback to use to filter the array.
@return {T} -- The filtered array.
Filters an array using a filterer callback. Any it... | 266 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/find.luau | luau | .luau | --!strict
--[=[
@function find
@within Array
@param array {T} -- The array to search.
@param value? any -- The value to search for.
@param from? number -- The index to start searching from.
@return number? -- The index of the first item in the array that matches the value.
Finds the index of the first item in ... | 254 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/findLast.luau | luau | .luau | --!strict
--[=[
@function findLast
@within Array
@param array {T} -- The array to search.
@param value? any -- The value to search for.
@param from? number -- The index to start searching from.
@return number? -- The index of the last item in the array that matches the value.
Finds the index of the last item i... | 235 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/findWhere.luau | luau | .luau | --!strict
--[=[
@function findWhere
@within Array
@param array {T} -- The array to search.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@param from? number -- The index to start searching from.
@return number -- The index of the first item in the array... | 262 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/findWhereLast.luau | luau | .luau | --!strict
--[=[
@function findWhereLast
@within Array
@param array {T} -- The array to search.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@param from? number -- The index to start searching from.
@return number -- The index of the last item in the ar... | 298 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/first.luau | luau | .luau | --!strict
local At = require("./at")
--[=[
@function first
@within Array
@param array {T} -- The array to get the first item from.
@return T -- The first item in the array.
Gets the first item in the array.
```lua
local array = { 1, 2, 3 }
local value = First(array) -- 1
```
]=]
local function first<T>(ar... | 115 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/flatten.luau | luau | .luau | --!strict
--[=[
@function flatten
@within Array
@param array {T} -- The array to flatten.
@param depth? number -- The depth to flatten the array to.
@return {T} -- The flattened array.
Flattens an array. If depth is not specified, it will flatten
the array as far as it can go.
```lua
local array = {
{ 1, ... | 330 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/freeze.luau | luau | .luau | --!strict
local Copy = require("./copy")
--[=[
@function freeze
@within Array
@param array {T} -- The array to freeze.
@return {T} -- The frozen array.
Freezes the top level of the array, making it read-only.
```lua
local array = { 1, 2, 3, { 4, 5, 6 } }
local new = Freeze(array)
new[1] = 4 -- e... | 158 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/freezeDeep.luau | luau | .luau | --!strict
--[=[
@function freezeDeep
@within Array
@param array {T} -- The array to freeze.
@return {T} -- The frozen array.
Freezes the entire array, making it read-only, including all
nested arrays.
```lua
local array = { 1, 2, 3, { 4, 5, 6 } }
local new = FreezeDeep(array)
new[1] = 4 -- error!
new[4]... | 207 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/includes.luau | luau | .luau | --!strict
local Find = require("./find")
--[=[
@function includes
@within Array
@param array {T} -- The array to search.
@param value any -- The value to search for.
@param from? number -- The index to start searching from.
@return boolean -- Whether the array contains the value.
Checks whether the array cont... | 201 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/init.luau | luau | .luau | --!strict
--[=[
@class Array
An array is a table consisting of index-value pairs. You don't need to
manually specify the indices when you create an array.
```lua
local array = {
"hello",
"world",
}
```
<br><br>
#### Aliases
`List`
]=]
local Array = {
at = require("@self/at"),
concat = require("@sel... | 565 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/last.luau | luau | .luau | --!strict
local At = require("./at")
--[=[
@function last
@within Array
@param array {T} -- The array to get the last element of.
@return T -- The last element of the array.
Gets the last element of the array.
```lua
local array = { 1, 2, 3 }
local value = Last(array) -- 3
```
]=]
local function last<T>(a... | 115 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/pop.luau | luau | .luau | --!strict
--[=[
@function pop
@within Array
@param array {T} -- The array to pop an element from.
@param count? number = 1 -- The number of elements to pop.
@return {T} -- An array with the popped elements removed.
Removes an element from the end of the array, and returns
the array with the popped elements rem... | 208 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/reduce.luau | luau | .luau | --!strict
--[=[
@function reduce
@within Array
@param array {T} -- The array to reduce.
@param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use.
@param initialReduction? U = {T}[1] -- The initial accumulator value.
@return U -- The final accumulator value.
Reduces the ar... | 325 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/reduceRight.luau | luau | .luau | --!strict
--[=[
@function reduceRight
@within Array
@param array {T} -- The array to reduce.
@param reducer (accumulator: U, value: T, index: number, array: {T}) -> U -- The reducer to use.
@param initialReduction? U = {T}[#{T}] -- The initial accumulator value.
@return U -- The final accumulator value.
Reduce... | 342 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/removeValues.luau | luau | .luau | --!strict
local ToSet = require("./toSet")
--[=[
@function removeValues
@within Array
@param array {T} -- The array to remove values from.
@param ... T -- The values to remove.
@return {T} -- The array with the values removed.
Removes values from an array.
```lua
local array = { "a", "b", "c", "c", "d", "e"... | 198 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/set.luau | luau | .luau | --!strict
--[=[
@function set
@within Array
@param array {T} -- The array to set the value on.
@param index number -- The index to set the value at (can be negative).
@param value T -- The value to set.
@return {T} -- The array with the value set.
Sets a value on an array at the given index.
```lua
local ar... | 249 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/shift.luau | luau | .luau | --!strict
--[=[
@function shift
@within Array
@param array {T} -- The array to shift.
@param count? number -- The number of items to shift.
@return {T} -- The shifted array.
Removes the first item from an array and returns the array
with the item removed.
```lua
local array = { 1, 2, 3 }
local new = Shift... | 194 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/shuffle.luau | luau | .luau | --!strict
local Copy = require("./copy")
--[=[
@function shuffle
@within Array
@param array {T} -- The array to shuffle.
@return {T} -- The shuffled array.
Randomises the order of the items in an array.
```lua
local array = { 1, 2, 3 }
local new = Shuffle(array) -- { 2, 3, 1 }
```
]=]
local function shuff... | 187 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/slice.luau | luau | .luau | --!strict
--[=[
@function slice
@within Array
@param array {T} -- The array to slice.
@param from? number -- The index to start from (can be negative).
@param to? number -- The index to end at (can be negative).
@return {T} -- The sliced array.
Slices an array.
```lua
local array = { 1, 2, 3, 4, 5 }
local... | 287 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/sort.luau | luau | .luau | --!strict
local Copy = require("./copy")
--[=[
@function sort
@within Array
@param array {T} -- The array to sort.
@param comparator? (a: T, b: T) -> boolean -- The comparator function.
@return {T} -- The sorted array.
Sorts an array.
```lua
local array = { "a", "b", "c", "d", "e" }
local new = Sort(array... | 186 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/splice.luau | luau | .luau | --!strict
--[=[
@function splice
@within Array
@param array {T} -- The array to splice.
@param start? number -- The index to start splicing at (can be negative).
@param end? number -- The index to end splicing at (can be negative).
@param ... ...T -- The values to insert.
@return {T} -- The spliced array.
Spl... | 411 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/toSet.luau | luau | .luau | --!strict
local _T = require("../Types")
--[=[
@function toSet
@within Array
@param array {T} -- The array to convert to a set.
@return Set<T> -- The set.
Converts an array to a set.
```lua
local array = { "a", "b", "b", "c", "d" }
local set = ToSet(array) -- { a = true, b = true, c = true, d = true }
```... | 159 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/update.luau | luau | .luau | --!strict
local Util = require("../Util")
local Copy = require("./copy")
type Callback<T> = (index: number) -> T
type Updater<T> = (currentValue: T, index: number) -> T
local function call<T>(callback: Callback<T>, index: number)
return if type(callback) == "function" then callback(index) else nil
end
--[=[
@funct... | 431 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/zip.luau | luau | .luau | --!strict
local Reduce = require("./reduce")
--[=[
@function zip
@within Array
@param ... {any} -- The arrays to zip together.
@return {any} -- The zipped array.
Zips multiple arrays together into a single array.
```lua
local table1 = { 1, 2, 3 }
local table2 = { "hello", "world", "goodbye" }
local new = ... | 265 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Array/zipAll.luau | luau | .luau | --!strict
local Reduce = require("./reduce")
local None = require("../None")
--[=[
@function zipAll
@within Array
@param ... ...{any} -- The arrays to zip.
@return {any} -- The zipped array.
Zips multiple arrays together into a single array, filling
in missing values with `None`.
```lua
local table1 = { 1, ... | 305 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/copyDeep.luau | luau | .luau | --!strict
--[=[
@function copyDeep
@within Dictionary
@param dictionary T -- The dictionary to copy.
@return T -- The copied dictionary.
Copies a dictionary recursively.
```lua
local dictionary = { hello = { world = "goodbye" } }
local new = CopyDeep(dictionary) -- { hello = { world = "goodbye" } }
... | 179 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/count.luau | luau | .luau | --!strict
local Util = require("../Util")
--[=[
@function count
@within Dictionary
@param dictionary T -- The dictionary to count.
@param predicate? (value: T, key: K, dictionary: T) -> any -- The predicate to use to filter the dictionary.
@return number -- The number of items in the dictionary.
Counts t... | 257 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/entries.luau | luau | .luau | --!strict
--[=[
@function entries
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to get the entries from.
@return {{ K, V }} -- The entries in the dictionary.
Returns the entries in the given dictionary as an array of key-value pairs.
```lua
local dictionary = { hello = "roblox", goodb... | 182 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/equals.luau | luau | .luau | --!strict
local Util = require("../Util")
local _T = require("../Types")
local function compare(a, b)
if type(a) ~= "table" or type(b) ~= "table" then
return a == b
end
for key, value in pairs(a) do
if b[key] ~= value then
return false
end
end
for key, value in pairs(b) do
if a[key] ~= value then
... | 339 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/equalsDeep.luau | luau | .luau | --!strict
local Util = require("../Util")
local _T = require("../Types")
local function compareDeep(a, b)
if type(a) ~= "table" or type(b) ~= "table" then
return a == b
end
for key, value in pairs(a) do
if not compareDeep(value, b[key]) then
return false
end
end
for key, value in pairs(b) do
if not c... | 363 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/filter.luau | luau | .luau | --!strict
local Util = require("../Util")
--[=[
@function filter
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to filter.
@param predicate? (value: V, key: K, dictionary: {[K]: V}) -> any -- The predicate to use to filter the dictionary.
@return {[K]: V} -- The filtered dictionary.
Filt... | 276 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/flatten.luau | luau | .luau | --!strict
local _T = require("../Types")
--[=[
@function flatten
@within Dictionary
@param dictionary T -- The dictionary to flatten.
@param depth? number -- The depth to flatten the dictionary to.
@return T -- The flattened dictionary.
Flattens a dictionary. If depth is not specified, it will flatten th... | 344 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/freeze.luau | luau | .luau | --!strict
local _T = require("../Types")
local Copy = require("./copy")
--[=[
@function freeze
@within Dictionary
@param dictionary T -- The dictionary to freeze.
@return T -- The frozen dictionary.
Freezes the given dictionary at the top level, making it read-only.
```lua
local dictionary = { hello =... | 160 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/freezeDeep.luau | luau | .luau | --!strict
local _T = require("../Types")
--[=[
@function freezeDeep
@within Dictionary
@param dictionary T -- The dictionary to freeze.
@return T -- The frozen dictionary.
Freezes the entire dictionary, making it read-only, including all nested dictionaries.
```lua
local dictionary = { hello = "roblox... | 200 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/fromEntries.luau | luau | .luau | --!strict
--[=[
@function fromEntries
@within Dictionary
@param entries {{ K, V }} -- An array of key-value pairs.
@return {[K]: V} -- A dictionary composed of the given key-value pairs.
Creates a dictionary from the given key-value pairs.
```lua
local entries = { { "hello", "roblox" }, { "goodbye", "w... | 185 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/has.luau | luau | .luau | --!strict
local _T = require("../Types")
--[=[
@function has
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to check.
@param key any -- The key to check for.
@return boolean -- Whether or not the dictionary has the given key.
Checks whether or not the given dictionary has the given key.
... | 160 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/init.luau | luau | .luau | --!strict
--[=[
@class Dictionary
Dictionaries are a type of data structure that can be used to store key-value pairs.
```lua
local dictionary = {
cats = 2,
dogs = 1
}
print(dictionary.cats) -- 2
```
]=]
local Dictionary = {
copy = require("@self/copy"),
copyDeep = require("@self/copyDeep"),
count = re... | 342 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/map.luau | luau | .luau | --!strict
--[=[
@function map
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to map.
@param mapper (value: V, key: K, dictionary: {[K]: V}) -> (Y?, X?) -- The mapper function.
@return {[X]: Y} -- The mapped dictionary.
Maps the dictionary using the mapper function. The mapper function can... | 322 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/merge.luau | luau | .luau | --!strict
local None = require("../None")
--[=[
@function merge
@within Dictionary
@param dictionaries? ...any -- The dictionaries to merge.
@return T -- The merged dictionary.
Merges the given dictionaries into a single dictionary. If the
value is `None`, it will be removed from the result. The
parame... | 265 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/mergeDeep.luau | luau | .luau | --!strict
local None = require("../None")
local copyDeep = require("./copyDeep")
--[=[
@function mergeDeep
@within Dictionary
@param dictionaries? ...any -- The dictionaries to merge.
@return T -- The merged dictionary.
Merges the given dictionaries into a single dictionary. If the
value is `None`, it will be ... | 357 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/removeKey.luau | luau | .luau | --!strict
local copy = require("./copy")
--[=[
@function removeKey
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to remove the key from.
@param key K -- The key to remove.
@return {[K]: V} -- The dictionary without the given key.
Removes the given key from the given dictionary.
```lu... | 194 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/removeKeys.luau | luau | .luau | --!strict
local copy = require("./copy")
--[=[
@function removeKeys
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to remove the keys from.
@param keys ...K -- The keys to remove.
@return {[K]: V} -- The dictionary without the given keys.
Removes the given keys from the given dictionary.... | 207 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/removeValues.luau | luau | .luau | --!strict
local ToSet = require("../Array/toSet")
--[=[
@function removeValues
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to remove the values from.
@param values ...V -- The values to remove.
@return {[K]: V} -- The dictionary without the given values.
Removes the given values from ... | 253 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/set.luau | luau | .luau | --!strict
local copy = require("./copy")
--[=[
@function set
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to set the value in.
@param key K -- The key to set the value in.
@param value V -- The value to set.
@return {[K]: V} -- The dictionary with the given value set.
Sets the given ... | 208 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/some.luau | luau | .luau | --!strict
--[=[
@function some
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to check.
@param predicate (value: V, key: K, dictionary: { [K]: V }) -> any -- The predicate to check against.
@return boolean -- Whether or not the predicate returned true for any value.
Checks whether or not ... | 254 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Dictionary/update.luau | luau | .luau | --!strict
local copy = require("./copy")
--[=[
@function update
@within Dictionary
@param dictionary {[K]: V?} -- The dictionary to update.
@param key K -- The key to update.
@param updater? (value: V, key: K) -> U -- The updater function.
@param callback? (key: K) -> C -- The callback function.
@return... | 378 |
ArvidSilverlock/Pilot.lua-Luau-LSP | ArvidSilverlock-Pilot.lua-Luau-LSP-7d31f35/documentation/modules/sift/Set/copy.luau | luau | .luau | --!strict
local copy = require("../Dictionary/copy")
--[=[
@function copy
@within Set
@param set { [T]: boolean } -- The set to copy.
@return { [T]: boolean } -- A copy of the set.
Creates a copy of a set.
```lua
local set = { hello = true }
local newSet = Copy(set) -- { hello = true }
```
]=]
re... | 99 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.