Why my list.drop() return nil?


#1

I just want to try the udf example from api reference. But it return a nil when I use list.drop()

new user can’t put images…

the part of source file is

the part of source file

and the log file is

the log file

What is going wrong?

Forgive me, my English is poor.


#2

Hello,

I think the problem is that your modified list (l_dorp) has a different name than the list you are printing out (l_drop). Instead of

local l_dorp = list.drop(l,2);

Use

local l_drop = list.drop(l,2);

Thanks,

-Brad


#3

Thanks, I am a goofball…