Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Oz 0.29 KB | None | 0 0
  1. local Position Xs N NP L in
  2.    fun {Position Xs N}
  3.       local XT XH in
  4.          case XH|XT = Xs of XH|nil then
  5.             if XH == N then 1 end
  6.          [] XH|XT then 1+{Position XT N}
  7.          end
  8.       end
  9.    end
  10.    
  11.    NP = 3
  12.    L = [1 2 3]
  13.    {Browse {Position L NP}}
  14.    
  15. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement