{"provider_url":"https://hatena.blog","url":"https://baba-s.hatenablog.com/entry/2022/01/18/150000","image_url":"https://cdn.user.blog.st-hatena.com/default_entry_og_image/94867065/1638616250229186","blog_title":"\u30b3\u30ac\u30cd\u30d6\u30ed\u30b0","categories":["Unity","Unity - \u65b0\u6a5f\u80fd"],"author_name":"baba_s","height":"190","title":"\u3010Unity\u3011Unity 2021.2 \u304b\u3089LINQ \u3067 ToHashSet\u30fbSkipLast\u30fbTakeLast \u304c\u6a19\u6e96\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f","version":"1.0","provider_name":"Hatena Blog","description":"\u6982\u8981 Unity 2021.2 \u304b\u3089 LINQ \u3067 ToHashSet\u30fbSkipLast\u30fbTakeLast \u304c\u6a19\u6e96\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f \uff08\u3082\u3057\u304b\u3057\u305f\u3089 Unity 2021.1 \u304b\u3089\u4f7f\u3048\u308b\u304b\u3082\uff1f\uff09 using System.Linq; using UnityEngine; public class Example : MonoBehaviour { private void Start() { var array = new[] { 1, 2, 2, 3, 3, 3 }; // 1, 2, 3 foreach ( var x in array.ToHashSet() ) { Debug.Log\u2026","width":"100%","blog_url":"https://baba-s.hatenablog.com/","author_url":"https://blog.hatena.ne.jp/baba_s/","type":"rich","published":"2022-01-18 15:00:00","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbaba-s.hatenablog.com%2Fentry%2F2022%2F01%2F18%2F150000\" title=\"\u3010Unity\u3011Unity 2021.2 \u304b\u3089LINQ \u3067 ToHashSet\u30fbSkipLast\u30fbTakeLast \u304c\u6a19\u6e96\u3067\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u3063\u305f - \u30b3\u30ac\u30cd\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>"}