private static object Any(Context context, IList<object> arguments)
{
if (arguments[1] is EmptyList)
return false;
IFunction function = (IFunction)arguments[0];
List list = (List)arguments[1];
while (list != null)
{
var result = function.Apply(context, new object[] { list.Head });
if (true.Equals(result))
return true;
list = (List)list.Tail;
}
return false;
}