get ips in functional programming