Filters

Library of helper functions that enable functional style programming and perform commonly used operations on lists and tables. Example: local fn = LibStub("LibFunctional-1.0") local list = { 1, 2, 3, 4, 5 } -- returns a list with the result of applying the specified function to all the values in the list local mapped = fn.map(list, function(x) return x * 2 end) -- returns the product of all the values in the list local s = fn.reduce(mapped, function(a, b) return a * b end) -- prints a sorted...

Library for tracking cooldowns of both enemies and allies. This library was made for the cooldown tracker in GladiusEx and therefore it is mainly intended to be used in arenas. Example usage: local CT = LibStub("LibCooldownTracker-1.0") function addon:OnEnable() CT.RegisterCallback(self, "LCT_CooldownUsed") CT.RegisterCallback(self, "LCT_CooldownsReset") CT:RegisterUnit("player") end function addon:OnDisable() CT:UnregisterUnit("player") CT.UnregisterAllCallbacks(self) end function...