blob: 33b51cb598250b0a9c43390b45c1da0adcd331b8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
using System;
using SCG = System.Collections.Generic;
public delegate S Fun<R,S> (R r);
public interface IIndexedSorted<T>
{
IIndexedSorted<V> Map<V> (Fun<T,V> mapper);
}
public class GuardedIndexedSorted<T> : IIndexedSorted<T>
{
IIndexedSorted<T> indexedsorted;
public IIndexedSorted<V> Map<V> (Fun<T,V> m)
{
return indexedsorted.Map (m);
}
}
class X
{
public static void Main ()
{ }
}
|