Support App.transform
Apply the transform to a Keyboard. Onwards to the final demonstration!
This commit is contained in:
		
							parent
							
								
									61a2fb108d
								
							
						
					
					
						commit
						244503bba9
					
				
					 5 changed files with 57 additions and 1 deletions
				
			
		|  | @ -6,3 +6,8 @@ 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