Move scratch/brilliant into //assessments
Where it belongs...
This commit is contained in:
parent
0c71fc9d1d
commit
33890d8a8b
10 changed files with 0 additions and 0 deletions
|
|
@ -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
|
||||
Loading…
Add table
Add a link
Reference in a new issue