海外勢/日本人のScala(エンジニア/ユーザ)の中で、特にフォローしておくといい方のTwitterアカウントを集めてみました。作成途中なので、突っ込み歓迎。fork歓迎。
This file contains 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
using UnityEditor; | |
using UnityEngine; | |
using System.Collections; | |
using System.IO; | |
/// <summary> | |
/// 新規フォルダ作成時に.gitkeepを自動作成 | |
/// </summary> | |
public class GitkeepMaker : AssetPostprocessor | |
{ |
This file contains 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
import scala.annotation._ | |
object Factorization { | |
/** 素数 */ | |
type Prime = Long | |
/** 指数 */ | |
type Exponent = Int | |
val primes: Stream[Prime] = 2 #:: sieve(3) |
This file contains 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
// ■Template Method Pattern | |
public abstract class Template { | |
public final void templateMethod() { | |
... | |
method1(); | |
... | |
method2(); | |
... | |
method3(); |