0 Members and 2 Guests are viewing this topic.
"Returns how many times Ans is an element in L1sum(Ans=L1
"Finds where Ans is in L1 provided it only occurs once1+dim(L1)-sum(cumSum(L1=Ans
"Finds the index of the Xth occurrence of Ans in L1 (indexed from 1)1+dim(L1)-sum(X<=cumSum(L1=Ans
Disp "The Game"
Disp "The Game
Also, before someone does it, no ':'s except as part of a string
:prgmXXR