Why my list.drop() return nil?

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.

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

Thanks, I am a goofball…