slice as func return value