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 |
|---|---|---|---|---|---|
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/StyleContext.luau | luau | .luau | local Theme = script.Parent
local Winro = Theme.Parent
local Roact = require(Winro.parent.Roact)
return Roact.createContext(nil)
| 33 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/StyleProvider.luau | luau | .luau | local StarterGui = game:GetService("StarterGui")
local Theme = script.Parent
local Winro = Theme.Parent
local Packages = Winro.Parent
local Roact = require(Packages.Roact)
local StyleContext = require(Theme.StyleContext)
local StyleProvider = Roact.Component:extend("StyleProvider")
-- // UIBlox theme provider //
fu... | 340 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Color.DarkTheme.luau | luau | .luau | local AccentColor = Color3.fromRGB(118, 185, 237) -- Color3.fromRGB(96, 205, 255)
return {
["colors/Fill_Color/Text/Primary"] = {
Color = Color3.fromRGB(255, 255, 255),
Transparency = 0,
},
["colors/Fill_Color/Text/Secondary"] = {
Color = Color3.fromRGB(255, 255, 255),
Transparency = 0.21568627450980393,
},... | 7,799 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Color.LightTheme.luau | luau | .luau | return {
['colors/Fill_Color/Text/Primary'] = {
Color = Color3.fromRGB(0, 0, 0);
Transparency = 0.10588235294117643;
};
['colors/Fill_Color/Text/Secondary'] = {
Color = Color3.fromRGB(0, 0, 0);
Transparency = 0.3921568627450981;
};
['colors/Fill_Color/Text/Tertiary'] = {
Color = Color3.fromRGB(0, 0, 0);
... | 7,751 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Font.GothamTheme.luau | luau | .luau | local Offset = 0
local HeightOffset = Offset
local Styles = {
['fonts/Caption'] = {
Font = Font.fromEnum(Enum.Font.Gotham),
Size = 12 + Offset,
LineHeight = 16 + HeightOffset,
ParagraphSpacing = 0,
LetterSpacing = 0.0,
},
['fonts/Body'] = {
Font = Font.fromEnu... | 610 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Font.SourceSansTheme.luau | luau | .luau | local Offset = 4
local HeightOffset = 0
local Styles = {
['fonts/Caption'] = {
Font = Font.fromEnum(Enum.Font.SourceSans),
Size = 12 + Offset,
LineHeight = 16 + HeightOffset,
ParagraphSpacing = 0,
LetterSpacing = 0.0,
},
['fonts/Body'] = {
Font = Font.fromEnum... | 608 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Image.Default.luau | luau | .luau | return {
['images/Fluent/AcceptMedium/12px'] = {
Image = 'rbxassetid://11654334168',
ImageRectOffset = Vector2.new(),
ImageRectSize = Vector2.new(12, 12),
ResampleMode = Enum.ResamplerMode.Default
},
['images/Fluent/ChevronDownMed/12px'] = {
Image = 'rbxassetid://11654211435',
ImageRectOffset = Vector2.n... | 353 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Image.RobloxImages.lua/FallbackImages.luau | luau | .luau | --[[ Fallback spritesheet image to use if CorePackages is unavailable
Check out https://confluence.rbx.com/display/MOBAPP/uiBlox+ImageSet to see how to update the sprite sheets
YOUR SPRITE SHEETS MAY GET MODERATED BECAUSE OF BRANDED CONTENT, refer to the work around in the link above if it does.
--]]
local FALLBACK_IMA... | 262 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Image.RobloxImages.lua/init.luau | luau | .luau | -- Internally used roblox icons
local FallbackImages = require(script.FallbackImages)
local GetImageSetData = require(script.GetImageSetData)
-- Format each image
local Images = {}
for ImagePath, ImageData in pairs(GetImageSetData(1)) do
local Image = {
Image = FallbackImages[ImageData.ImageSet],
ImageRectOffset... | 177 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Locale.en-us.luau | luau | .luau | return require(game:GetService('ReplicatedStorage'):FindFirstChild('SavingSystemLocale', true))
| 19 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/Themes/Style.Default.luau | luau | .luau | return {
['styles/BorderSizePixel/Shell/Window'] = 1,
['styles/CornerRadius/Default/Outer'] = 8,
['styles/CornerRadius/Default/Inner'] = 4,
['styles/Padding/Default/Outer/Left'] = 25,
['styles/Padding/Default/Outer/Right'] = 25,
['styles/Padding/Default/Outer/Top'] = 25,
['styles/Padding/Default/Outer/Bott... | 658 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/init.luau | luau | .luau | -- Theme: The theming utility used all throught Winro
local Winro = script.Parent
local Packages = Winro.Parent
local Roact = require(Packages.Roact)
local Sift = require(Packages.Sift)
local strict = require(Winro.strict)
-- Theme
local Theme = {
Provider = require(script.StyleProvider),
Consumer = require(script... | 1,419 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Theme/withStyle.luau | luau | .luau | local Theme = script.Parent
local Winro = Theme.Parent
local Packages = Winro.Parent
local Roact = require(Packages.Roact)
local StyleConsumer = require(Theme.StyleConsumer)
-- Since our style consumer object receives the whole update-able container,
-- we need to send only the contained style value through to the
--... | 128 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Utility/FrameVisualizer.luau | luau | .luau | local Winro = script.Parent.Parent
local Packages = Winro.Parent
local Roact = require(Packages.Roact)
local new = Roact.createElement
local WireframeVisualizer = Roact.PureComponent:extend(script.Name)
local ClassToColor = {
Frame = Color3.new(1, 0, 0),
TextLabel = Color3.new(0, 1, 0),
TextButton = Color3.new(0,... | 365 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Utility/GetTextSize.luau | luau | .luau | local TextService = game:GetService("TextService")
return function(String, Font, Size, LineHeight)
local GotTextSize, TextSize = pcall(function()
local Params = Instance.new('GetTextBoundsParams')
Params.Text = String
Params.Font = Font
Params.Size = Size
Params.Width = math.huge
local TextSize = TextS... | 164 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Utility/validateFromExisting.luau | luau | .luau | --[[
This function returns a type checker based on the provided value
]]
local Winro = script.Parent.Parent
local Packages = Winro.Parent
local t = require(Packages.t)
local function GetValidator(Value, NoTable)
-- Get the type
local Type = typeof(Value)
-- Override for table types
if Type == 'table' and not... | 162 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/Validators/StyleValidator.luau | luau | .luau | -- StyleValidator: Validates a style
return function (Style, ...)
local Type = typeof(Style)
return (Type == 'string' or Type == 'table'), 'Invalid style type. expected string or table, got '..typeof(Style)
end
| 53 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/WinroComponent.storybook.luau | luau | .luau | local Winro = script.Parent
local Packages = Winro.Parent
local Theme = require(Winro.Theme)
local ThemeProvider = Theme.Provider
local Roact = require(Packages.Roact)
local new = Roact.createElement
local function SortProps(Props)
table.sort(Props, function(A, B)
return A.Name < B.Name
end)
end
local function ... | 650 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/init.luau | luau | .luau | local App = script.App
local Winro = {
Theme = require(script.Theme),
Utility = {
GetTextSize = require(script.Utility.GetTextSize),
},
App = {
Effect = {
DropShadow = require(App.Effect.DropShadow),
},
Flyout = {
Flyout = require(App.Flyout.Flyout),
},
Info = {
Tooltip = require(App.Info.... | 323 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/Winro/strict.luau | luau | .luau | --!strict
local function strict(t: { [any]: any }, name: string?)
-- FIXME Luau: Need to define a new variable since reassigning `name = ...`
-- doesn't narrow the type
local newName = name or tostring(t)
return setmetatable(t, {
__index = function(_self, key)
local message = ("%q (%s) is not a valid member o... | 171 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/at.luau | luau | .luau | --!strict
--[=[
@function at
@within Array
@param array {T} -- The array to get the value from.
@param index number -- The index to get the value from (can be negative).
@return T -- The value at the given index.
Gets a value from an array at the given index.
```lua
local array = { 1, 2, 3 }
local value = ... | 164 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/concat.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local None = require(Sift.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 = {... | 238 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/concatDeep.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local CopyDeep = require(script.Parent.copyDeep)
local None = require(Sift.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 d... | 309 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/copy.luau | luau | .luau | --!strict
--[=[
@function copy
@within Array
@param array {T} -- The array to copy.
@return {T} -- The copied array.
Copies an array.
```lua
local array = { 1, 2, 3 }
local new = Copy(array) -- { 1, 2, 3 }
print(new == array) -- false
```
]=]
return table.clone
| 94 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/copyDeep.luau | luau | .luau | --!strict
--[=[
@function copyDeep
@within Array
@param array {T} -- The array to copy.
@return {T} -- The copied array.
Copies an array, with deep copies of all nested arrays.
```lua
local array = { 1, 2, 3, { 4, 5 } }
local result = CopyDeep(array) -- { 1, 2, 3, { 4, 5 } }
print(result == array) -- fals... | 200 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/count.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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 ... | 254 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/create.luau | luau | .luau | --!strict
--[=[
@function create
@within Array
@param length number -- The length of the array to create.
@param value? T -- The value to fill the array with.
@return {T} -- The created array.
Creates an array of the given length, filled with the given value.
This is just a wrapper around `table.create`... | 121 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/equals.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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
r... | 330 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/equalsDeep.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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 f... | 375 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/every.luau | luau | .luau | --!strict
--[=[
@function every
@within Array
@param array {T} -- The array to check.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@return boolean -- Whether every item in the array passes the predicate.
Checks whether every item in the array passes t... | 221 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/filter.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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 arra... | 271 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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 ... | 252 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 233 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 260 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 296 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/first.luau | luau | .luau | --!strict
local At = require(script.Parent.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 f... | 116 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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, ... | 328 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/freeze.luau | luau | .luau | --!strict
local Copy = require(script.Parent.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... | 159 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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]... | 203 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/includes.luau | luau | .luau | --!strict
local Find = require(script.Parent.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 ... | 202 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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(script.at),
concat = require(script... | 460 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/insert.luau | luau | .luau | --!strict
--[=[
@function insert
@within Array
@param array {T} -- The array to insert the value into.
@param index number -- The index to insert the value at (can be negative).
@param values ...T -- The values to insert.
@return {T} -- The array with the value inserted.
Inserts the given values into an array ... | 325 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/last.luau | luau | .luau | --!strict
local At = require(script.Parent.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... | 116 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/map.luau | luau | .luau | --!strict
--[=[
@function map
@within Array
@param array {T} -- The array to map.
@param mapper (value: T, index: number, array: {T}) -> U? -- The mapper function.
@return {U} -- The mapped array.
Maps the array using the mapper function.
```lua
local array = { 1, 2, 3 }
local new = Map(array, function(val... | 214 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 206 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/push.luau | luau | .luau | --!strict
--[=[
@function push
@within Array
@param array {T} -- The array to push an element to.
@param ... ...T -- The elements to push.
@return {T} -- The array with the pushed elements.
Adds elements to the end of the array.
#### Aliases
`append`
```lua
local array = { 1, 2, 3 }
local new = Push(ar... | 198 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 317 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 334 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/removeIndex.luau | luau | .luau | --!strict
--[=[
@function removeIndex
@within Array
@param array {T} -- The array to remove the value from.
@param index number -- The index to remove the value from (can be negative).
@return {T} -- The array with the value removed.
Removes a value from an array at the given index.
```lua
local array = { 1,... | 215 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/removeIndices.luau | luau | .luau | --!strict
--[=[
@function removeIndices
@within Array
@param array {T} -- The array to remove the indices from.
@param ... ...number -- The indices to remove the values from (can be negative).
@return {T} -- The array with the values removed.
Removes values from an array at the given indices.
```lua
local ar... | 240 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/removeValue.luau | luau | .luau | --!strict
--[=[
@function removeValue
@within Array
@param array {T} -- The array to remove the value from.
@param value T -- The value to remove.
@return {T} -- The array with the value removed.
Removes a value from an array.
```lua
local array = { 1, 2, 3 }
local new = RemoveValue(array, 2) -- { 1, 3 }
... | 167 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/removeValues.luau | luau | .luau | --!strict
local ToSet = require(script.Parent.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"... | 199 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/reverse.luau | luau | .luau | --!strict
--[=[
@function reverse
@within Array
@param array {T} -- The array to reverse.
@return {T} -- The reversed array.
Reverses the order of the items in an array.
```lua
local array = { 1, 2, 3 }
local new = Reverse(array) -- { 3, 2, 1 }
```
]=]
local function reverse<T>(array: { T }): { T }
local ... | 138 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 247 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 192 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/shuffle.luau | luau | .luau | --!strict
local Copy = require(script.Parent.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 func... | 188 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 279 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/some.luau | luau | .luau | --!strict
--[=[
@function some
@within Array
@param array {T} -- The array to check.
@param predicate (value: T, index: number, array: {T}) -> any -- The predicate to use to check the array.
@return boolean -- Whether some item in the array passes the predicate.
Checks whether some item in the array passes the ... | 220 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/sort.luau | luau | .luau | --!strict
local Copy = require(script.Parent.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 = ... | 187 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 401 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/toSet.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local _T = require(Sift.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... | 168 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/unshift.luau | luau | .luau | --!strict
--[=[
@function unshift
@within Array
@param array {T} -- The array to insert the values to.
@param ... ...T -- The values to insert.
@return {T} -- The array with the values inserted.
Inserts values to the beginning of an array.
#### Aliases
`prepend`
```lua
local array = { 1, 2, 3 }
local n... | 179 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/update.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
local Copy = require(script.Parent.copy)
type Callback<T> = (index: number) -> T
type Updater<T> = (currentValue: T, index: number) -> T
local function call<T>(callback: Callback<T>, index: number)
if type(callback) == "function" then
ret... | 433 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/zip.luau | luau | .luau | --!strict
local Reduce = require(script.Parent.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" }
lo... | 262 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Array/zipAll.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Reduce = require(script.Parent.reduce)
local None = require(Sift.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 value... | 311 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/copy.luau | luau | .luau | --!strict
--[=[
@function copy
@within Dictionary
@param dictionary T -- The dictionary to copy.
@return T -- The copied dictionary.
Copies a dictionary.
```lua
local dictionary = { hello = "world" }
local new = Copy(dictionary) -- { hello = "world" }
print(new == dictionary) -- false
print(new... | 101 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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" } }
... | 180 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/count.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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 i... | 264 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 180 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/equals.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
local _T = require(Sift.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(... | 349 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/equalsDeep.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
local _T = require(Sift.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 k... | 373 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/every.luau | luau | .luau | --!strict
--[=[
@function every
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to check.
@param predicate (value: V, key: K, dictionary: {[K]: V}) -> any -- The predicate to use to check the dictionary.
@return boolean -- Whether every item in the dictionary passes the predicate.
Checks w... | 245 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/filter.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.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} ... | 281 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/flatten.luau | luau | .luau | --!strict
local _T = require(script.Parent.Parent.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... | 344 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/flip.luau | luau | .luau | --!strict
--[=[
@function flip
@within Dictionary
@param dictionary { [K]: V } -- The dictionary to flip.
@return { [V]: K } -- The flipped dictionary.
Flips a dictionary. Keys become values and values become keys.
```lua
local dictionary = { hello = "roblox", goodbye = "world" }
local new = Flip(di... | 159 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/freeze.luau | luau | .luau | --!strict
local _T = require(script.Parent.Parent.Types)
local Copy = require(script.Parent.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
lo... | 163 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/freezeDeep.luau | luau | .luau | --!strict
local _T = require(script.Parent.Parent.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 = {... | 202 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/fromArrays.luau | luau | .luau | --!strict
--[=[
@function fromArrays
@within Dictionary
@param keys {K} -- An array containing values to be used as keys.
@param values {V} -- An array containing values to be used as values.
@return {[K]: V} -- A dictionary composed of the given keys and values.
Creates a dictionary from the given arrays... | 223 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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... | 183 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/has.luau | luau | .luau | --!strict
local _T = require(script.Parent.Parent.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... | 162 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/includes.luau | luau | .luau | --!strict
--[=[
@function includes
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to check.
@param value V -- The value to check for.
@return boolean -- Whether or not the dictionary includes the given value.
Checks whether or not the given dictionary includes the given value.
```lua
... | 180 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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(script.copy),
copyDeep = require(script.copyDeep),
count = requ... | 289 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/keys.luau | luau | .luau | --!strict
--[=[
@function keys
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to get the keys of.
@return {K} -- An array containing the keys of the given dictionary.
Gets the keys of the given dictionary as an array.
```lua
local dictionary = { hello = "roblox", goodbye = "world" }
... | 152 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/merge.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local None = require(Sift.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 re... | 272 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/mergeDeep.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local None = require(Sift.None)
local copyDeep = require(script.Parent.copyDeep)
--[=[
@function mergeDeep
@within Dictionary
@param dictionaries? ...any -- The dictionaries to merge.
@return T -- The merged dictionary.
Merges the given dictionaries into a single dic... | 365 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/removeKey.luau | luau | .luau | --!strict
local copy = require(script.Parent.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... | 195 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/removeKeys.luau | luau | .luau | --!strict
local copy = require(script.Parent.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 d... | 208 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/removeValue.luau | luau | .luau | --!strict
--[=[
@function removeValue
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to remove the value from.
@param value V -- The value to remove.
@return {[K]: V} -- The dictionary without the given value.
Removes the given value from the given dictionary.
```lua
local dictionary... | 208 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/removeValues.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local ToSet = require(Sift.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... | 262 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/set.luau | luau | .luau | --!strict
local copy = require(script.Parent.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 ... | 209 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/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 ... | 252 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/update.luau | luau | .luau | --!strict
local copy = require(script.Parent.copy)
type Callback<K, V> = (key: K) -> V
type Updater<K, V> = (value: V, key: K) -> V
local function call<K, V>(callback: Callback<K, V>, key: K)
if type(callback) == "function" then
return callback(key)
end
end
--[=[
@function update
@within Dictionary
@param... | 440 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Dictionary/values.luau | luau | .luau | --!strict
--[=[
@function values
@within Dictionary
@param dictionary {[K]: V} -- The dictionary to get the values from.
@return {V} -- The values in the dictionary.
Gets the values in the given dictionary.
```lua
local dictionary = { hello = "roblox", goodbye = "world" }
local values = Values(dicti... | 146 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/None.luau | luau | .luau | --!strict
--[=[
@prop None None
@within Sift
Luau can't distinguish between a nil value and a non-existent value. This
constant is used to represent a non-existent value. It can be used in methods
like `Array.Concat` or `Dictionary.Merge` to remove the value from the result.
]=]
local None = newproxy(true)
getme... | 104 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Set/add.luau | luau | .luau | --!strict
--[=[
@function add
@within Set
@param set { [T]: boolean } -- The set to add the value to.
@param ... ...T -- The values to add.
@return { [T]: boolean } -- The set with the values added.
Adds values to a set.
```lua
local set = { hello = true }
local newSet = Add(set, "world") -- { hel... | 182 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Set/copy.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local copy = require(Sift.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(se... | 107 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Set/count.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function count
@within Set
@param set { [T]: boolean } -- The set to count.
@param predicate? (item: T, set: { [T]: boolean }) -> boolean? -- The predicate to use to count.
@return number -- The number of items in the set.
... | 253 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Set/delete.luau | luau | .luau | --!strict
--[=[
@function delete
@within Set
@param set { [T]: boolean } -- The set to delete from.
@param ... ...T -- The values to delete.
@return { [T]: boolean } -- The set with the values deleted.
Deletes values from a set.
Aliases: `subtract`
```lua
local set = { hello = true, world = true }... | 187 |
Epix-Incorporated/Adonis | Epix-Incorporated-Adonis-5264669/MainModule/Client/UI/Modern/Components/Packages/_Index/csqrl_sift@0.0.3/sift/Set/filter.luau | luau | .luau | --!strict
local Sift = script.Parent.Parent
local Util = require(Sift.Util)
--[=[
@function filter
@within Set
@param set { [T]: boolean } -- The set to filter.
@param predicate? (item: T, set: { [T]: boolean }) -> any -- The function to filter the set with.
@return { [T]: boolean } -- The filtered set.
... | 258 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.