fork download
  1.  
  2. local MyMap in
  3. MyMap = proc {$ Ls F R}
  4. case Ls of
  5. `|`(1:H 2:T) then local Res in
  6. {F H Res}
  7. local RestAns in
  8. R=`|`(1:Res 2:RestAns)
  9. {MyMap T F RestAns}
  10. end
  11. end
  12. else R=nil
  13. end
  14. end
  15. {MyMap MyList MyFun MyRes}
  16. end
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Mozart Compiler 1.4.0 (20080704) playing Oz 3

%%% feeding file prog.oz

%********************* binding analysis error *******************
%**
%** variable `|` not introduced
%**
%** in file "./prog.oz", line 5, column 0

%********************* binding analysis error *******************
%**
%** variable MyList not introduced
%**
%** in file "./prog.oz", line 15, column 7

%********************* binding analysis error *******************
%**
%** variable MyFun not introduced
%**
%** in file "./prog.oz", line 15, column 14

%********************* binding analysis error *******************
%**
%** variable MyRes not introduced
%**
%** in file "./prog.oz", line 15, column 20
%** ------------------ rejected (4 errors)
stdout
Standard output is empty