diff options
author | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-05-14 23:47:20 +0200 |
---|---|---|
committer | Tomasz Chojnacki <tomaszchojnacki2001@gmail.com> | 2023-05-14 23:47:20 +0200 |
commit | a7ce7a1d80a811a9e086d506bc877e2bd9467e36 (patch) | |
tree | 3eb7c2efdf569e9bf9a2d2c12709b5e80ba2777c /aoc-2020-gleam/src/util/dir.gleam | |
parent | 1c23ee26b48e2536ce059ae23a22814071fc6de2 (diff) | |
download | gleam_aoc2020-a7ce7a1d80a811a9e086d506bc877e2bd9467e36.tar.gz gleam_aoc2020-a7ce7a1d80a811a9e086d506bc877e2bd9467e36.zip |
Finish day 17, rename Pos
Diffstat (limited to 'aoc-2020-gleam/src/util/dir.gleam')
-rw-r--r-- | aoc-2020-gleam/src/util/dir.gleam | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aoc-2020-gleam/src/util/dir.gleam b/aoc-2020-gleam/src/util/dir.gleam index 6f637d9..194d712 100644 --- a/aoc-2020-gleam/src/util/dir.gleam +++ b/aoc-2020-gleam/src/util/dir.gleam @@ -2,7 +2,7 @@ import gleam/int import gleam/iterator as iter import ext/resultx as resx import ext/iteratorx as iterx -import util/pos.{Pos} +import util/pos2.{Pos2} pub type Dir { North @@ -11,7 +11,7 @@ pub type Dir { West } -pub fn offset(direction: Dir) -> Pos { +pub fn offset(direction: Dir) -> Pos2 { case direction { North -> #(0, 1) East -> #(1, 0) |