Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
jaroshevskii committed Jan 14, 2024
1 parent 7e54a01 commit 4dd9d5a
Showing 1 changed file with 0 additions and 21 deletions.
21 changes: 0 additions & 21 deletions Sources/IceCreamSandwich/Protocols/IceCreamSandwichProtocol.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,26 +5,5 @@

/// A protocol that helps determine if an object resembles the delightful structure of an Ice Cream Sandwich.
protocol IceCreamSandwichProtocol {
/// Determines whether a given entity follows the pattern of an Ice Cream Sandwich.
///
/// An Ice Cream Sandwich pattern consists of three distinct segments, where both the
/// outer segments are identical and composed of repeated elements, and the middle
/// segment is different from the outer ones.
///
/// Examples of Ice Cream Sandwich entities:
///
/// ```swift
/// "AABBA"
/// [1, 2, 2, 1]
/// true, true, false, true, true
/// ```
///
/// Examples not considered Ice Cream Sandwich:
///
/// ```swift
/// "ABBA" // Outer segments must be identical
/// [1, 2, 3, 1] // Must have three segments
/// false, true, false // Fails to meet the pattern requirements
/// ```
var isIceCreamSandwich: Bool { get }
}

0 comments on commit 4dd9d5a

Please sign in to comment.