### Create and Add AlyaNum in Lua Source: https://github.com/evilbocchi/alyanum/blob/main/documents/introduction.md Demonstrates creating a new AlyaNum instance and performing addition using both macro functions and Lua metamethods. Requires AlyaNum to be required. ```lua local AlyaNum = require(path.to.AlyaNum) local number = AlyaNum.new(5) -- Create a new AlyaNum representing 5 print(number) -- 5 local toAdd = AlyaNum.new(250) toAdd = toAdd:mul(2) -- Use macro functions... number = number + toAdd -- ...or Lua metamethods print(number) -- 505 ``` -------------------------------- ### Create and Add AlyaNum in TypeScript Source: https://github.com/evilbocchi/alyanum/blob/main/documents/introduction.md Shows how to instantiate an AlyaNum object and perform addition using its methods, as TypeScript does not support operator overloading. Requires importing the AlyaNum class. ```typescript import AlyaNum from "@antivivi/AlyaNum"; let number = new AlyaNum(5); // Create a new AlyaNum representing 5 print(number); // 5 let toAdd = new AlyaNum(250); toAdd = toAdd.mul(2); // Use macro functions (TypeScript does not support operator overloading) number = number.add(toAdd); print(number); // 505 ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.