Is this an appropriate use of the writer monad?
 
            
            
            
            
                11 Mar
                
                    2011
                
            
            
                11 Mar
                
                '11
                
            
            
            
        
    
                12:47 a.m.
            
        I need to (for class) write a minimax implementation. I'm currently doing this by functionally defining the entire tree and later pruning it down to the size I want. My assignment requires that I output the number of nodes I evaluated. I am considering wrapping the tree generation with the Writer monad (I'm not yet certain how I'd do this). Does this sound reasonable to you haskellers who know more than I? Would anyone suggest a better way? -- Alex R
        5348
        
      
          Age (days ago)
        
      
        5348
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Alex Rozenshteyn Alex Rozenshteyn