2012-05-30 91 views
0

我有兩個功能;同步作業

foo (A, B, C) 

    bar (D, E, F) 

我想要;

| --------- | 
foo   foo 
started finished 

      | ------- | 
      bar  bar 
      started finished 

         | ------ | 
         ^^^^^^^^^^ 
         concatenate two list namely C and F 

如何同步這兩個函數以便按順序工作?

你能給一個樣本示例嗎?

回答

1
foo(A,B,C), bar(D,E,F), append(C,F,Result).