Custom block for "Get max of list given mapping function"