equal
deleted
inserted
replaced
1 package ru.alpha.ltg.cards; |
1 package ru.alpha.ltg.cards; |
2 |
2 |
3 import ru.alpha.ltg.cards.api.ICard; |
3 import ru.alpha.ltg.cards.api.ICard; |
4 import ru.alpha.ltg.cards.api.IFunction; |
|
5 import ru.alpha.ltg.cards.api.IValue; |
4 import ru.alpha.ltg.cards.api.IValue; |
6 |
5 |
7 public class K implements ICard |
6 public class K implements ICard |
8 { |
7 { |
9 |
8 |
10 @Override |
9 @Override |
11 public IValue returnValue(IValue[] values, Slot[] slots) |
10 public IValue returnValue(IValue value, Slot[] slots) |
12 { |
11 { |
13 // TODO Auto-generated method stub |
12 return new ICard() |
14 return null; |
|
15 } |
|
16 |
|
17 public IValue ff(final IValue x) |
|
18 { |
|
19 return new IFunction() |
|
20 { |
13 { |
21 public IValue returnValue(IValue value) |
14 public IValue returnValue(IValue value, Slot[] slots) |
22 { |
15 { |
23 return x; |
16 return value; |
24 } |
17 } |
25 }; |
18 }; |
26 } |
19 } |
27 } |
20 } |