generating the set of all finite-valued functions on a finite space
 
            
            
            
            
                23 Apr
                
                    2009
                
            
            
                23 Apr
                
                '09
                
            
            
            
        
    
                9:45 a.m.
            
        Hi, I'd like to lazily generate the set of all {-1,0,1}-valued functions on {'a','b','c'}? How should I best approach this. I was thinking about generalizing the power set definition powerset :: [a] -> [[a]] powerset = filterM (const [True, False]) but clearly don't know enough about filterM and the like to do it this way. Erik
        6035
        
      
          Age (days ago)
        
      
        6035
        
    
          Last active (days ago)
        
        
        
        0 comments
    
    
        
        1 participants
    
    
    
    
    
    
    
    
    participants (1)
- 
                 Erik Quaeghebeur Erik Quaeghebeur