001 /** 002 * Implements the CFML Function arraydeleteat 003 */ 004 package railo.runtime.functions.arrays; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.exp.PageException; 008 import railo.runtime.functions.BIF; 009 import railo.runtime.op.Caster; 010 import railo.runtime.type.Array; 011 012 013 public final class ArrayDeleteAt extends BIF { 014 015 private static final long serialVersionUID = -5900967522809749154L; 016 017 public static boolean call(PageContext pc , Array array, double number) throws PageException { 018 array.removeE((int)number); 019 return true; 020 } 021 022 @Override 023 public Object invoke(PageContext pc, Object[] args) throws PageException { 024 return call(pc,Caster.toArray(args[0]),Caster.toDoubleValue(args[1])); 025 } 026 }