SHARE
TWEET

Untitled

a guest Sep 22nd, 2017 62 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
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