Created
          September 7, 2010 15:19 
        
      - 
      
- 
        Save fogus/568518 to your computer and use it in GitHub Desktop. 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | (defmacro gen-em [body] | |
| `(do | |
| ~@(for [[fn-name# fn-doc#] body] | |
| (list 'defn fn-name# fn-doc# ['a] 'a)))) | |
| (gen-em [[foo "sample doc"] [bar "detailed documentation"]]) | |
| (foo :foo) | |
| ;=> :foo | |
| (bar :bar) | |
| ;=> bar | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment