All pastes #2120629 Raw Edit

Miscellany

public text v1 · immutable
#2120629 ·published 2012-02-22 05:23 UTC
rendered paste body
#include <stdio.h>
#include "ilist_destructive.h"

static void iprint(char *label, ilist d){
   printf("%s ",label);
   while (!iempty_huh(d)) {
      printf(" %d",ifirst(d));
      d = irest_destroy(d);
   }
   printf("\n");
}
int main(void){
  ilist a = iempty();
  ilist b = icons_destroy (1, a);

  ilist x = iempty();
  ilist y = icons_destroy (2,x);
  ilist z = icons_destroy (3, y);
  
  iprint ("lame", z);



  idelete (b);
   return 0;
}