io.IoList.slotLast C# (CSharp) 메소드

slotLast() 공개 정적인 메소드

public static slotLast ( IoObject target, IoObject locals, IoObject message ) : IoObject
target IoObject
locals IoObject
message IoObject
리턴 IoObject
        public static IoObject slotLast(IoObject target, IoObject locals, IoObject message)
        {
            IoMessage m = message as IoMessage;
            IoList o = target as IoList;
            if (o.list.Count > 0)
            {
                IoObject e = o.list[o.list.Count - 1] as IoObject;
                return e;
            }
            return target.state.ioNil;
        }