-{"metadata":{"roleHeading":"Instance Method","symbolKind":"method","modules":[{"name":"Math"}],"role":"symbol","title":"compute(a:b:operation:)","externalID":"s:4Math3ALUC7compute1a1b9operationSiSgSi_SiAA12ALUOperationOtF","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"compute"},{"kind":"text","text":"("},{"kind":"externalParam","text":"a"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"b"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"operation"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ALUOperation","preciseIdentifier":"s:4Math12ALUOperationO"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?"}]},"abstract":[{"type":"text","text":"Performs an operation and returns the result."}],"variants":[{"traits":[{"interfaceLanguage":"swift"}],"paths":["\/documentation\/math\/alu\/compute(a:b:operation:)"]}],"schemaVersion":{"minor":3,"patch":0,"major":0},"sections":[],"kind":"symbol","identifier":{"url":"doc:\/\/math.Math\/documentation\/Math\/ALU\/compute(a:b:operation:)","interfaceLanguage":"swift"},"hierarchy":{"paths":[["doc:\/\/math.Math\/documentation\/Math","doc:\/\/math.Math\/documentation\/Math\/ALU"]]},"primaryContentSections":[{"kind":"declarations","declarations":[{"languages":["swift"],"platforms":["macOS"],"tokens":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"compute"},{"kind":"text","text":"("},{"kind":"externalParam","text":"a"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"b"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":", "},{"kind":"externalParam","text":"operation"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ALUOperation","identifier":"doc:\/\/math.Math\/documentation\/Math\/ALUOperation","preciseIdentifier":"s:4Math12ALUOperationO"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?"}]}]},{"kind":"parameters","parameters":[{"content":[{"inlineContent":[{"text":"The first operand.","type":"text"}],"type":"paragraph"}],"name":"a"},{"content":[{"inlineContent":[{"text":"The second operand.","type":"text"}],"type":"paragraph"}],"name":"b"},{"content":[{"inlineContent":[{"text":"The operation to perform.","type":"text"}],"type":"paragraph"}],"name":"operation"}]},{"kind":"content","content":[{"level":2,"text":"Return Value","anchor":"return-value","type":"heading"},{"inlineContent":[{"type":"text","text":"The result value."}],"type":"paragraph"}]}],"references":{"doc://math.Math/documentation/Math/ALU/compute(a:b:operation:)":{"url":"\/documentation\/math\/alu\/compute(a:b:operation:)","title":"compute(a:b:operation:)","kind":"symbol","fragments":[{"kind":"keyword","text":"func"},{"kind":"text","text":" "},{"kind":"identifier","text":"compute"},{"kind":"text","text":"("},{"kind":"externalParam","text":"a"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"b"},{"kind":"text","text":": "},{"preciseIdentifier":"s:Si","kind":"typeIdentifier","text":"Int"},{"kind":"text","text":", "},{"kind":"externalParam","text":"operation"},{"kind":"text","text":": "},{"kind":"typeIdentifier","text":"ALUOperation","preciseIdentifier":"s:4Math12ALUOperationO"},{"kind":"text","text":") -> "},{"kind":"typeIdentifier","text":"Int","preciseIdentifier":"s:Si"},{"kind":"text","text":"?"}],"role":"symbol","identifier":"doc:\/\/math.Math\/documentation\/Math\/ALU\/compute(a:b:operation:)","type":"topic","abstract":[{"type":"text","text":"Performs an operation and returns the result."}]},"doc://math.Math/documentation/Math/ALUOperation":{"type":"topic","kind":"symbol","abstract":[{"text":"ALU operation codes.","type":"text"}],"identifier":"doc:\/\/math.Math\/documentation\/Math\/ALUOperation","role":"symbol","fragments":[{"kind":"keyword","text":"enum"},{"kind":"text","text":" "},{"kind":"identifier","text":"ALUOperation"}],"navigatorTitle":[{"kind":"identifier","text":"ALUOperation"}],"url":"\/documentation\/math\/aluoperation","title":"ALUOperation"},"doc://math.Math/documentation/Math/ALU":{"identifier":"doc:\/\/math.Math\/documentation\/Math\/ALU","kind":"symbol","navigatorTitle":[{"text":"ALU","kind":"identifier"}],"title":"ALU","type":"topic","abstract":[{"text":"An Arithmetic Logic Unit (ALU).","type":"text"}],"url":"\/documentation\/math\/alu","role":"symbol","fragments":[{"kind":"keyword","text":"class"},{"kind":"text","text":" "},{"kind":"identifier","text":"ALU"}]},"doc://math.Math/documentation/Math":{"kind":"symbol","role":"collection","title":"Math","url":"\/documentation\/math","abstract":[{"text":"A comprehensive, high-precision mathematical computation library for Swift.","type":"text"}],"type":"topic","identifier":"doc:\/\/math.Math\/documentation\/Math"}}}
0 commit comments