Function partition