Swiftã§ã³ã¼ãã£ã³ã°ãã¦ããã¨ï¼åã«ã¤ãã¦è²ã ã¨èãããã¨ãããã¾ãï¼ åã®æãæ¹ã¯å¦è¡çã«ãè²ã ããã¨ãããã¾ããï¼ãã®ã¹ã©ã¤ãã¯èªåã®çµé¨ããèªåãªãã®æãæ¹ãªã®ã§ï¼ééã£ã¦ãããã¨ãè£è¶³ãªã©ããã°æãã¦ä¸ããï¼ ã¹ã©ã¤ãã®è£è¶³ ä¾ã«åºãã¦ããResult<T>ã§ããï¼Swiftã³ã³ãã¤ã©ã®ä»æ§ã§ãã®ã¾ã¾ã§ã¯ã³ã³ãã¤ã«ãããã¨ãã§ãã¾ããï¼ ãã®ãããªåã«å ãã§ï¼Result<Box<T>>åã«ãããï¼@autoclosureã§å ãã¨ã³ã³ãã¤ã«ãå¯è½ã«ãªãã¾ãï¼ class Box<T> { let value: T init(_ value: T) { self.value = value } } åç æåã«å¤§ããªå£°ã§æ¨æ¶ããããªããæ°æã¡ãã¢ã¬ã£ã¦ãã¾ã£ã¦ï¼ç°æ§ãªãã³ã·ã§ã³ã§ãã¬ã¼ã³ãã¦ãã¾ã£ãï¼ å®å ¨ã«å¾ãããã⦠åé¿ãç´¹ä»ãã¾ã 次ã®çºè¡¨ãåãã¨ãã¿ã¤ãã«ãã«ãã³ã¤ã¤ã
{{#tags}}- {{label}}
{{/tags}}