math.statistics: use >array instead of { } clone-like.
							parent
							
								
									938a6d68ab
								
							
						
					
					
						commit
						aa779eaba8
					
				| 
						 | 
				
			
			@ -91,7 +91,7 @@ PRIVATE>
 | 
			
		|||
 | 
			
		||||
: (kth-object) ( seq k nth-quot exchange-quot quot: ( x y -- ? ) -- elt )
 | 
			
		||||
    #! The algorithm modifiers seq, so we clone it
 | 
			
		||||
    [ { } clone-like ] 4dip ((kth-object)) ; inline
 | 
			
		||||
    [ >array ] 4dip ((kth-object)) ; inline
 | 
			
		||||
 | 
			
		||||
: kth-object-unsafe ( seq k quot: ( x y -- ? ) -- elt )
 | 
			
		||||
    [ [ nth-unsafe ] [ exchange-unsafe ] ] dip (kth-object) ; inline
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue