diff options
Diffstat (limited to 'scratch/brilliant/Utils.hs')
-rw-r--r-- | scratch/brilliant/Utils.hs | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/scratch/brilliant/Utils.hs b/scratch/brilliant/Utils.hs deleted file mode 100644 index c69d00333b8e..000000000000 --- a/scratch/brilliant/Utils.hs +++ /dev/null @@ -1,13 +0,0 @@ --------------------------------------------------------------------------------- -module Utils where --------------------------------------------------------------------------------- -import Data.Function ((&)) --------------------------------------------------------------------------------- - -(|>) :: a -> (a -> b) -> b -(|>) = (&) - --- | Rotate `xs` as a cycle `n` times. -rotate :: Int -> [a] -> [a] -rotate n xs = take size . drop (n `mod` size) . cycle $ xs - where size = length xs |