Skip to content

wikis Search Results · bucket language:JavaScript language:JavaScript language:JavaScript language:Java language:Shell

45.8k results  (180 ms)

45.8k results

The language qualifier is not supported when searching wikis. Try searching for repositories instead?

desc: returns the entry at an index returns: Entry: Table args: Index: Number note: equivalent to doing this: Bucket[Index] local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:EntryAt(1) -- { 1, "abc", "uni" } bucket:EntryAt(2) -- { "key", "value", "pair" }

desc: loops through the insides and checks if EVERY entry passes a given action returns: Boolean args: Function local bucket = Bucket.new({ "a", "b", "c" }) bucket:Every(function(Key, Value, Index

desc: filters out entries that don't pass a given function returns: Bucket: Table args: Function note: clones the original bucket bucket:Filter(function(Key, Value, Index, Type) return type(Value) == "string" end)

desc: returns the first value returns: Value: Object args: Offset: Number note: you can offset it up

desc: returns the first entry returns: Entry: Table args: Offset: Number note: you can offset it up

desc: returns the first key returns: Key: String args: Offset: Number note: you can offset it up

desc: returns the type of the first entry returns: Type: String args: Offset: Number note: you can offset it up

desc: loops through the insides and makes a new bucket with the returns of the action given returns: Returns: Bucket args: Function bucket:ForBack(function(Key, Value, Index, Type) return Value end)

desc: loops through the insides and runs the action given returns: None args: Function bucket:ForEach(function(Key, Value, Index, Type) print(Key, Value, Index, Type) end)

desc: returns the value of a key returns: Value: Object args: Key: String local bucket = Bucket.new({ "abc", { key = "value" } }) bucket:Get("abc") -- "abc" bucket:Get("key") -- "value"