package kata.gameoflife.a20170806; // Oxford: // "Arrange (a group of people or things) in classes or categories // according to shared qualities or characteristics." // This could also be Decide. /** * Game of Life Kata. * Copyright (c) 2017, Peter Kofler, licensed under BSD License. */ public interface Classify { boolean asOptimal(); // So we end with a function, a class with one public method and its // arguments are provided in the constructor: A functor = a function object. // But this does more because of polymorphy we have a conditional as well // and the function is in fact two functions composed using pattern matching on this. }