microsoft/qdk

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
billti/wgpu

Branches

Tags

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

Clone

HTTPS

Download ZIP

samples/language/MultiFileProject/src/Particle.qs

9lines · modecode

1namespace Particle {
2 newtype Particle = (x : Int, y : Int, z : Int);
3
4 function addParticles(a : Particle, b : Particle) : Particle {
5 let (x1, y1, z1) = a!;
6 let (x2, y2, z2) = b!;
7 return Particle(x1 + x2, y1 + y2, z1 + z2);
8 }
9}
10