From 34dcef166e47d268e98973f609da470c59ed5f07 Mon Sep 17 00:00:00 2001 From: Andinus Date: Wed, 3 Mar 2021 23:18:52 +0530 Subject: Change subroutine declaration style From: sub t () {} To: sub t() {} --- lib/Octans/Neighbors.rakumod | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lib/Octans/Neighbors.rakumod') 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 -- cgit 1.4.1-2-gfad0