combinators.lib:construct-slots
							parent
							
								
									bea0eb759a
								
							
						
					
					
						commit
						df5fa5f239
					
				| 
						 | 
				
			
			@ -161,3 +161,8 @@ MACRO: map-call-with2 ( quots -- )
 | 
			
		|||
  r> length [ narray ] curry append ;
 | 
			
		||||
 | 
			
		||||
MACRO: map-exec-with ( words -- ) [ 1quotation ] map [ map-call-with ] curry ;
 | 
			
		||||
 | 
			
		||||
MACRO: construct-slots ( assoc tuple-class -- tuple ) 
 | 
			
		||||
    [ construct-empty ] curry swap [
 | 
			
		||||
        [ dip ] curry swap 1quotation [ keep ] curry compose
 | 
			
		||||
    ] { } assoc>map concat compose ;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue