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: 
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]);

```
Try something like this.

```
var url = window.location.href;
var urlArray = url.split("/"); 

urlArray[urlArray.length-1] //City
urlArray[urlArray.length-2] //Country

```