Error

Anonymous closure argument not contained in a closure

Solution

You shold use{}, not ().