{"width":"100%","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20080527%2F1211891297\" title=\"\u74b0\u5883\u5909\u6570\u306e\u5024\u3092\u5f97\u308b - \u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5\" 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","provider_url":"https://hatena.blog","blog_url":"https://blog.emattsan.org/","description":"\u30c6\u30f3\u30dd\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u308b\u306e\u306b\u3001\u30c6\u30f3\u30dd\u30e9\u30ea\u30d5\u30a9\u30eb\u30c0\u306e\u5024\u3092\u5f97\u308b\u5fc5\u8981\u306b\u8feb\u3089\u308c\u3066\u3002 \u5fd8\u308c\u306a\u3044\u3046\u3061\u306b\u30e1\u30e2\u30e1\u30e2\u3002 import System.Environment get_env :: [String] -> String -> IO String get_env [] d = return d get_env (s:ss) d = catch ( getEnv s ) ( \\ _ -> get_env ss d ) -- test main = get_env [\"TEMP\", \"TMP\"] \".\" >>= print C++\u3060\u3068\u3053\u3093\u306a\u611f\u3058\u3002\u30e1\u30e2\u30e1\u30e2\u3002 #include <cstdlib> /// @\u2026","provider_name":"Hatena Blog","image_url":null,"blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","url":"https://blog.emattsan.org/entry/20080527/1211891297","published":"2008-05-27 21:28:17","categories":["Haskell","C++"],"height":"190","title":"\u74b0\u5883\u5909\u6570\u306e\u5024\u3092\u5f97\u308b","author_name":"E_Mattsan","author_url":"https://blog.hatena.ne.jp/E_Mattsan/"}