microsoft/qdk

Public

mirrored fromhttps://github.com/microsoft/qdkAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v1.19.0

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

samples/language/MultiFileProject/src/Particle.qs

9lines · modepreview

struct Particle { X : Int, Y : Int, Z : Int }

function addParticles(a : Particle, b : Particle) : Particle {
    return new Particle {
        X = a.X + b.X,
        Y = a.Y + b.Y,
        Z = a.Z + b.Z
    };
}