Great! especially since I noticed you can use it in combination with INTO.
So you write a(n insert) function, need to check an optional (DEFAULT NULL) variable and you RETURNING INTO myvar and use that.
Made me happy when trying it - that should work, shouldn't it - and it did.