blob: dd221d318091ed9d93dad0c3d6d6a78e5a0db4fa [file] [log] [blame]
/**
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
[1,2,3,4][2];
[1..1000][10:20];
[1,2]+[1,2,3];
{("a",1),("b",2)}["a"];
store xx := Node("a",{("x","1")},[Node("b",{},[CData("text")])]);
xx.b;
toInt(xx.@x)+1;
1 as long;
1 as double;
store x := [xml| <a A="2"><b>1</b><b>2</b></a> |];
x.b;
[xml| <a><b>10</b>{{(x.b)[0]}}</a> |];
min({1,2,3});
max({1.2,3.4});
min({1.3 as double,4.8 as double});
count({1,2,3});
sum({1.2,3.4});
avg({1,2,3});
avg({1.2,3.4});
avg({1.3 as double,4.8 as double});