{"image_url":null,"height":"190","provider_name":"Hatena Blog","author_url":"https://blog.hatena.ne.jp/gurrium/","provider_url":"https://hatena.blog","description":"\u65e5\u8a18 \u98df\u30d1\u30f3\u3088\u308a\u3053\u306e\u524d\u713c\u3044\u305f\u30d1\u30f3\u306e\u307b\u3046\u304c\u7f8e\u5473\u3057\u3044\u306e\u3067\u3044\u3044\uff0e \u4eca\u65e5\u66f8\u3044\u305f\u30b3\u30fc\u30c9 https://docs.swift.org/swift-book/LanguageGuide/Generics.html struct Stack<Element> { var items: [Element] = [] mutating func push(_ item: Element) { items.append(item) } mutating func pop() -> Element { return items.removeLast() } } extension Stack { func peek\u2026","url":"https://giarrium.hatenablog.com/entry/2021/08/31/204302","title":"78\u65e5\u76ee ","published":"2021-08-31 20:43:02","version":"1.0","blog_title":"\u305c\u306e\u305c","width":"100%","blog_url":"https://giarrium.hatenablog.com/","author_name":"gurrium","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fgiarrium.hatenablog.com%2Fentry%2F2021%2F08%2F31%2F204302\" title=\"78\u65e5\u76ee  - \u305c\u306e\u305c\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","type":"rich","categories":["Swift"]}