use complex const variable initialization w/ lambda functions instead of conditional operator