folds.jl

Pollen/xtree/folds.jl is a source file in module Pollen

			
			
			
			function
			 
			

	
			gettext
			(
			x
			,
			 
			
			sep
			 
			=
			 
			
			"
			
			"
			)
			
			
    
			
			return
			 
			
			

	
			fold
			(
			x
			,
			 
			
			"
			
			"
			)
			 
			do
			
			 
			s
			,
			 
			x
			
			
        
			
			if
			
			
			 
			x
			 
			isa
			 

	
			Leaf
			 
			&&
			
			 
			
			x
			[
			]
			 
			isa
			 
			AbstractString
			
			
            
			
			return
			
			 
			s
			 
			*
			 
			sep
			 
			*
			 
			
			x
			[
			]
			
        
			else
			
			
            
			
			return
			 
			s
			
        
			end
			
    
			end
			

			end