Question: For `(int -> int) -> int = <fun>` the corresponding expression can be `fun x -> (x 1) + 1`.  

Is it possible to have an expression with `int -> (int -> int) = <fun>` type? If not then why?

Answer: 
Try:

```
var  fragment = "http://test.com/en/country/city";
var array_fragment = fragment.split('/');
var city = array_fragment[array_fragment.length - 1]
var country = array_fragment[array_fragment.length - 2]
alert(country)

```
Use split function to get second last value.

Try this 

```
var url='http://test.com/en/country/city';

var splitArray=url.split('/');

alert(splitArray[splitArray.length-2]);

```