Created
          December 16, 2010 09:05 
        
      - 
      
- 
        Save yuroyoro/743212 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
    
  
  
    
  | scala> Option({ def Y[Int,String](f:((Int => String),Int) => String,x:Int):String = f((y:Int) =>Y(f,y),x);Y( _:((Int => String),Int) => String,_:Int)}).map{y => y((f:Int => String,n:Int) => n match{case 0 => "ば";case 20 => "あ" + f(n-1);case m =>"ば" + f(n-1);},20)}.get | |
| res42: String = あばばばばばばばばばばばばばばばばばばばば | 
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment