SLC: Add Function.identity method

Adding this will make it perform great and avoid the eta allocation.

2 Likes

i guess to evaluate this utility, we should compare this vs Predef.identity, and bare x => x on megamorphic callsite, and with inliner turned on/off.