SHARE
TWEET

Untitled

a guest Nov 28th, 2017 69 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. MyMap L Lout A B1 B2 C F in
  2.    MyMap = proc {$ Xs F R}
  3.       case Xs
  4.       of nil then
  5.         R = nil
  6.       [] X|Xr then
  7.         local T A in
  8.             {F X A}
  9.             {MyMap Xr F T}
  10.             R = A|T
  11.         end
  12.       end
  13.    end
  14.    
  15.    L = [1 2 3 4]
  16.    F = proc {$ X R}
  17.       local P in
  18.          P = proc{$ R1}
  19.             R1 = X*X
  20.          end
  21.          {ByNeed P R1}
  22.       end
  23.    end
  24.    {MyMap L F Lout}
  25.    A = Lout.1
  26.    B1 = Lout.2
  27.    B2 = B1.1
  28.    C = A + B2
  29.    {Browse C}
  30. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top