6 using namespace wibble;
12 int head()
const {
return i; }
23 bool empty()
const {
return i == max; }
25 My(
int j = 0,
int m = 0 ) : i( j ), max( m ) {}
31 int head()
const {
return i; }
47 bool empty()
const {
return i == max; }
49 My2(
int j = 0,
int m = 0,
int r = 0 ) : i( j ), max( m ),
50 rep( r ), repmax( r ) {}
53 static bool odd(
int i ) {
57 template<
typename List >
60 while ( !l.empty() ) {
68 template<
typename List >
73 typename List::Type last = l.head();
74 while ( !l.empty() ) {
75 assert( last <= l.head() );
97 checkListSorted( list );
101 checkListSorted(
My( 100, 0 ) );
107 #warning Disabled until mornfall fixes it
116 My2 list( 0, 20, 3 );
125 std::vector< int > vec;
127 std::back_inserter( vec ) );
128 for (
int i = 0; i < 1024; ++i )
137 #warning Disabled until mornfall fixes it
141 list::map( list, std::ptr_fun( mul2add1 ) ) );
165 My2( 0, 5, 1 ) ) ), 20 );