Advertisement
Guest User

Untitled

a guest
Nov 25th, 2017
135
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oz 0.23 KB | None | 0 0
  1. local Length R in
  2.    proc {Length Xs L R}
  3.       case Xs
  4.       of nil then R = L
  5.       [] X|Xr then
  6.         local P in
  7.             P = L+1
  8.             {Length Xr P R}
  9.         end
  10.       end
  11.    end
  12.    
  13.    {Length [1 2 3 4] 0 R}
  14.    {Browse R}
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement