{"image_url":null,"author_name":"E_Mattsan","width":"100%","blog_title":"\u30a8\u30f3\u30b8\u30cb\u30a2\u306e\u30bd\u30d5\u30c8\u30a6\u30a7\u30a2\u7684\u611b\u60c5","description":"\u5f15\u7528\u8a18\u53f7\u306b\u9650\u3089\u305a\u3067\u3059\u304c\u3002 \u4f8b\u306f\u3001ls\u30b3\u30de\u30f3\u30c9\u3067\u4e00\u89a7\u3057\u305f\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u306e\u5185\u5bb9\u306b\u5f15\u7528\u8a18\u53f7(>)\u3092\u3064\u3051\u308b\u4f8b\u3067\u3059\u3002 ls | ghc -e 'getContents >>= mapM_ putStrLn.map ((++) \"> \").lines' \u672a\u6765\u306e\u81ea\u5206\u306e\u305f\u3081\u306b\u89e3\u8aac\u3002 getContents\u3067\u6a19\u6e96\u5165\u529b\u304b\u3089\u6587\u5b57\u5217\u3092\u53d6\u5f97 lines\u3067\u6587\u5b57\u5217\u306e\u30ea\u30b9\u30c8\u306b\u5206\u89e3 map ((++) \"> \")\u3067\u5f15\u7528\u8a18\u53f7\u3092\u884c\u982d\u306b\u3064\u3051\u308b mapM_ putStrLn\u3067\u6a19\u6e96\u51fa\u529b\u306b\u51fa\u529b \u88dc\u8db3 Ruby\u3060\u3068\u3053\u3093\u306a\u611f\u3058\u3002\u5fd8\u308c\u306a\u3044\u3088\u3046\u306b\u3002 ls | ruby -ne 'print \"> #{$_}\"'","blog_url":"https://blog.emattsan.org/","title":"\u884c\u982d\u306b\u5f15\u7528\u8a18\u53f7\u3092\u3064\u3051\u308b","published":"2008-05-27 13:02:35","categories":["Haskell","Ruby"],"provider_name":"Hatena Blog","provider_url":"https://hatena.blog","height":"190","version":"1.0","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fblog.emattsan.org%2Fentry%2F20080527%2F1211860955\" title=\"\u884c\u982d\u306b\u5f15\u7528\u8a18\u53f7\u3092\u3064\u3051\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>","url":"https://blog.emattsan.org/entry/20080527/1211860955","author_url":"https://blog.hatena.ne.jp/E_Mattsan/","type":"rich"}