flatMap(identity) is join. Thanks, @stew.