Skip to content

Commit

Permalink
vector struct
Browse files Browse the repository at this point in the history
  • Loading branch information
IR0NSIGHT committed Oct 30, 2023
1 parent cc66437 commit 9d74e91
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
Empty file.
11 changes: 11 additions & 0 deletions examples/fasteffekt/cd/Vector2D.effekt
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
module cd/Vector2D

record Vector2D (
x: Int, y: Int
)

def x(t: Vector2D) = {
t match {
case Vector2D(x,y) => return x
}
}

0 comments on commit 9d74e91

Please sign in to comment.