diff options
author | Andinus <andinus@nand.sh> | 2021-03-03 23:18:52 +0530 |
---|---|---|
committer | Andinus <andinus@nand.sh> | 2021-03-03 23:18:52 +0530 |
commit | 34dcef166e47d268e98973f609da470c59ed5f07 (patch) | |
tree | dd15d46051b5c41e731bcb53a331ed807ab69956 /lib/Octans/Neighbors.rakumod | |
parent | 4c77f3376020ea13754b2f635ce07094cdc4a226 (diff) | |
download | octans-34dcef166e47d268e98973f609da470c59ed5f07.tar.gz |
Change subroutine declaration style
From: sub t () {} To: sub t() {}
Diffstat (limited to 'lib/Octans/Neighbors.rakumod')
-rw-r--r-- | lib/Octans/Neighbors.rakumod | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/Octans/Neighbors.rakumod b/lib/Octans/Neighbors.rakumod index 0c90b0c..cc46a25 100644 --- a/lib/Octans/Neighbors.rakumod +++ b/lib/Octans/Neighbors.rakumod @@ -1,9 +1,7 @@ -unit module Octans::Neighbors; - # neighbors returns the neighbors of given index. Neighbors are cached # in @neighbors array. This way we don't have to compute them # everytime neighbors subroutine is called for the same position. -sub neighbors ( +sub neighbors( @puzzle, Int $y, Int $x --> List ) is export { # @directions is holding a list of directions we can move in. It's |