I was wondering today if i have a list of numbers. Is there a function in ClojureScript which returns a number made from the numbers by place value? (I dont mean a `list()`

, but just some numbers)

For e.g.:

I have a some numbers 1, 2, 3, and i am looking for a function which converts it to 123 (one hundred and twenty-three).

I thought I found a solution for this with `read-string`

```
(read-string (str 1 2 3))
;=> 123
```

but sadly it not works well if i want to use it in the function discussed below.

I have a "functionmade" map where keys are vectors and values are numbers. Like this: {[0 0] 0, [0 1] 1, ... [4 5] 45, ... [9 9] 99}

The only way i can use `get`

function on this map is:

```
(get {[0 2] 2} [0 2])
;=> 2
; or
(get {[4 5] 45} [4 5])
;=> 45
```

This is grinding, but it works. To make it look much better i tried to define a function where i used `read-string`

: (read/ refers to cljs.reader)

```
(defn get-oxo [x y]
(get {[x y] (read/read-string (str x y))} [x y]))
;So i can use it like this for e.g.:
(get-oxo 4 5)
;=> 45
```

It also returns values which are not in the map:

```
(get-oxo 112 358)
;=> 112358
```

I suppose the problem is that this way `get-oxo`

returns not the value of the paired key, but the number constructed from x y...

So the questions is how can I fix it to return the value of the paired key and not the number constructed from the numbers i give to the functions?

(There is another problem if i want to generate a map with wider range of numbers, for e.g. not just 0-9 but 0-99. This way the algorythm of `get-oxo`

is not true. I use the function discussed at: ClojureScript zipmap tricks me or what?).