Use exclusive ranges in scala triple