ru.alpha.ltg.cards/src/test/java/ru/alpha/ltg/cards/K.java
changeset 2 41d78f336ede
child 3 b4cd95c95403
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/ru.alpha.ltg.cards/src/test/java/ru/alpha/ltg/cards/K.java	Fri Jun 17 18:49:51 2011 +0400
     1.3 @@ -0,0 +1,27 @@
     1.4 +package ru.alpha.ltg.cards;
     1.5 +
     1.6 +import ru.alpha.ltg.cards.api.ICard;
     1.7 +import ru.alpha.ltg.cards.api.IFunction;
     1.8 +import ru.alpha.ltg.cards.api.IValue;
     1.9 +
    1.10 +public class K implements ICard
    1.11 +{
    1.12 +
    1.13 +	@Override
    1.14 +	public IValue returnValue(IValue[] values, Slot[] slots)
    1.15 +	{
    1.16 +		// TODO Auto-generated method stub
    1.17 +		return null;
    1.18 +	}
    1.19 +	
    1.20 +	public IValue ff(final IValue x)
    1.21 +	{
    1.22 +		return new IFunction()
    1.23 +		{
    1.24 +			public IValue returnValue(IValue value)
    1.25 +			{
    1.26 +				return x;
    1.27 +			}
    1.28 +		};
    1.29 +	}
    1.30 +}