from pyschieber.suit import Suit


def split_card_values_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card.value for card in cards if card.suit.name ==
            suit.name]
        suits.append((suit, suit_cards))
    return suits


def split_cards_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card for card in cards if card.suit.name == suit.name]
        suits.append((suit, suit_cards))
    return suits

8e86204bca505a3f92dcd9f508b4f53e796f1a67
<mask token>

<mask token>


def split_cards_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card for card in cards if card.suit.name == suit.name]
        suits.append((suit, suit_cards))
    return suits

<mask token>


def split_card_values_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card.value for card in cards if card.suit.name ==
            suit.name]
        suits.append((suit, suit_cards))
    return suits


def split_cards_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card for card in cards if card.suit.name == suit.name]
        suits.append((suit, suit_cards))
    return suits

from pyschieber.suit import Suit


def split_card_values_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card.value for card in cards if card.suit.name ==
            suit.name]
        suits.append((suit, suit_cards))
    return suits


def split_cards_by_suit(cards):
    suits = []
    for suit in Suit:
        suit_cards = [card for card in cards if card.suit.name == suit.name]
        suits.append((suit, suit_cards))
    return suits
