sequences.rotated: adding all-rotations.
							parent
							
								
									a9fc7d828b
								
							
						
					
					
						commit
						16213f8779
					
				| 
						 | 
				
			
			@ -17,3 +17,6 @@ M: rotated virtual@ [ n>> + ] [ circular>> ] bi ;
 | 
			
		|||
M: rotated virtual-exemplar circular>> ;
 | 
			
		||||
 | 
			
		||||
INSTANCE: rotated virtual-sequence
 | 
			
		||||
 | 
			
		||||
: all-rotations ( seq -- seq' )
 | 
			
		||||
    dup length iota [ <rotated> ] with map ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue