Skip to content

Instantly share code, notes, and snippets.

@kishida
Created January 30, 2016 22:03
Show Gist options
  • Save kishida/0bf82f02126c3ca0d5a4 to your computer and use it in GitHub Desktop.
Save kishida/0bf82f02126c3ca0d5a4 to your computer and use it in GitHub Desktop.
Syllogism
public interface Syllogism {
interface さかな{}
interface およぐ{}
interface さば{}
さかな majorPremise(さば s);
およぐ minorPremise(さかな f);
default およぐ conclusion(さば s){
return minorPremise(majorPremise(s));
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment