microsoft/qdk
Publicmirrored from https://github.com/microsoft/qdkAvailable
samples/language/MultiFileProject/src/Particle.qs
9lines · modeblame
ce8303b0Alex Hansen1 years ago | 1 | struct Particle { X : Int, Y : Int, Z : Int } |
ff95d996Alex Hansen2 years ago | 2 | |
ce8303b0Alex Hansen1 years ago | 3 | function addParticles(a : Particle, b : Particle) : Particle { |
| 4 | return new Particle { | |
| 5 | X = a.X + b.X, | |
| 6 | Y = a.Y + b.Y, | |
| 7 | Z = a.Z + b.Z | |
| 8 | }; | |
ff95d996Alex Hansen2 years ago | 9 | } |