Skip to content

Commit

Permalink
Add examples with polymorphic vectors
Browse files Browse the repository at this point in the history
  • Loading branch information
croyzor committed Oct 14, 2024
1 parent 69db9f9 commit 46bb285
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions brat/examples/fanout.brat
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ ext "" f :: { Vec(Qubit, 2) -o Bit }

g(Qubit, Qubit) -o Bit
g = [\/]; f

poly(X :: *) -> { Vec(X, 3) -> X, X, X }
poly(_) = { [/\] }

poly2(X :: $) -> { X, X, X -o Vec(X, 3) }
poly2(_) = { [\/] }

0 comments on commit 46bb285

Please sign in to comment.