Question: Is there a way to insert in a collection of Cassandra a value with single quote? This is what I have:

Table:

```
CREATE TABLE test.test (
   name text PRIMARY KEY,
   values map<text, text>
)

```

Insert: 

```
INSERT INTO test (name, values) VALUES ( 'jos''emy',{'foo':'josemy''s house'});

```

Query:

```
SELECT * FROM  test;

```

```
 name    | values
---------+----------------------------
 jos'emy | {'foo': 'josemy''s house'}

```

As you can see, Cassandra replace the double quote in the simple "name" field, but does not replace the quotes in the field inside the map. The result I want is:

```
 name    | values
---------+----------------------------
 jos'emy | {'foo': 'josemy's house'}

```

Answer: 
Here it is:

```
var func = ((): () => number => {

    var _count: number = 0;

    var increment: () => number = function (): number {

        _count += 1;

        return _count;
    }

    return increment;
})();

```

But adding an interface makes it easier.

```
interface Increment {
    (): number;
}

var func = ((): Increment => {

    var _count: number = 0;

    var increment: Increment = function () {

        _count += 1;

        return _count;
    }

    return increment;
})();

```
I did try this and it works!

**file1.ts**

```
export var Mvar = (() => {
    var private_arry = [];
    function pushfn(val):any {
      return private_arry.push(val);
    }
    function countfn():number {
      return private_arry.length;
    }
    function setfn(val):void {
      private_arry = null;
      private_arry = val;
    }
    function getfn(val?:number):any {
      if(val!==undefined) {
        return private_arry[val];
      }
      return private_arry;
    }
    return {
      push:pushfn,
      count:countfn,
      set:setfn,
      get:getfn
    }
})()

```

**file2.ts**

```
import { Mvar } from '../../shared/file1';

ngOnInit() {

console.log("private var: " + Mvar.push("e1"));
console.log("private count: " + Mvar.count());
console.log("private get: " + Mvar.get());

...
}

```