  ### Developer Friendly ### Extremely Fast ### Productivity ### Hello, SliceUp!

This is an example of using SliceUp. Use it as a database or cache.

Store an array. Add 1 to each element then compute the sum. All within SliceUp!

 ``` 1 2 3 4 5 6 7``` ```var sliceup = new SliceUp("sliceup.io/test"); // store an array by key sliceup.put("x", [0, 1, 2]); // add 1 to each element of array then sum up. // total = (0+1) + (1+1) + (2+1) var total = sliceup.run("sum(x+1)") ```

### Slice! Slice! Slice!

Perform complex time series analytics in easily in one-line of code

This example slices an array of scores by 2 second intervals.

 ``` 1 2 3 4 5 6 7 8 9 10 11 12 13 14``` ```var sliceup = new SliceUp("sliceup.io/test"); //store data in sliceup sliceup.put({ time: [00:00:00", "00:00:01", "00:00:02", "00:00:03"], score: [1, 2, 3, 4] }); // slice the scores by 2 second time intervals var r = sliceup.run("slice(time, score, 2s); // r = [["00:00:00", [1, 2]], ["00:00:02", [3, 4]] ```

### Analytics

SliceUp allows you to process data fast. It lets you do complex calculations inside SliceUp and not outside.

Concentrate on your core product and SliceUp takes care of the data processing.

 ``` 1 2 3 4 5 ``` ```var sliceup = new SliceUp("sliceup.io/test"); // store an array by key sliceup.put("x", [1, 2, 3, 4]); // cumulative sum. // total = [(1), (1+2), (1+2+3), (1+2+3+4)] var total = sliceup.run("sums(x)") ```