ru.alpha.ltg.cards/src/test/java/ru/alpha/ltg/cards/K.java
changeset 3 b4cd95c95403
parent 2 41d78f336ede
child 4 6b4afd8720b8
     1.1 --- a/ru.alpha.ltg.cards/src/test/java/ru/alpha/ltg/cards/K.java	Fri Jun 17 18:49:51 2011 +0400
     1.2 +++ b/ru.alpha.ltg.cards/src/test/java/ru/alpha/ltg/cards/K.java	Fri Jun 17 19:10:39 2011 +0400
     1.3 @@ -1,26 +1,19 @@
     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 +	public IValue returnValue(IValue value, Slot[] slots)
    1.16  	{
    1.17 -		// TODO Auto-generated method stub
    1.18 -		return null;
    1.19 -	}
    1.20 -	
    1.21 -	public IValue ff(final IValue x)
    1.22 -	{
    1.23 -		return new IFunction()
    1.24 +		return new ICard()
    1.25  		{
    1.26 -			public IValue returnValue(IValue value)
    1.27 +			public IValue returnValue(IValue value, Slot[] slots)
    1.28  			{
    1.29 -				return x;
    1.30 +				return value;
    1.31  			}
    1.32  		};
    1.33  	}