今や、よく目にする関数型言語と言う言葉。実際、どういうものなの? 関数型言語つかってみたんだけどわけわかんない! なんどやっても挫折するけど今度こそ! 関数型言語を使う同士達よ集まれ! みたいな勉強会です。
====================================
import Data.Char | |
main :: IO () | |
main = print $ foldl1 (+) ( map ord ['\NUL'..'\n']) |
#include <stdio.h> | |
#include <stdlib.h> | |
#include "mruby.h" | |
#include "mruby/compile.h" | |
mrb_value mrb_f(mrb_state *mrb,mrb_value self) | |
{ | |
mrb_value v; |
好きなアニメ当てるまで帰れま10 | |
ガンスリンガーガール | |
キューティクル探偵因幡 | |
ラストエグザイル | |
未確認で進行形 | |
ダンタリアンの書架 | |
人類は衰退しました | |
神さまのいない日曜日 | |
サカサマのパテマ | |
流星のロックマン |
Varnish::VCL.init(something) do | |
VCL.return VCL::OK | |
end | |
Varnish::VCL.pass(something)do | |
end | |
Varnish::VCL.deliver() do | |
end | |
Varnish:VCL.ban() do |
class VCL | |
attr_accessor :resp, :beresp, :req, :bereq, :import, :obj, :client | |
def initialize | |
@resp = nil | |
@beresp = nil | |
@req = nil | |
@bereq = VCL::HTTP.new | |
@import = nil |
r = Resolv.new | |
addr = r.getaddress "google.com" | |
puts r.getname addr | |
puts r.getnames addr |
/* ---===### include/vdef.h ###===--- */ | |
/*- | |
* Copyright (c) 2006 Verdens Gang AS | |
* Copyright (c) 2012 Fastly Inc | |
* Copyright (c) 2006-2015 Varnish Software AS | |
* All rights reserved. | |
* | |
* Author: Poul-Henning Kamp <[email protected]> | |
* Author: Rogier 'DocWilco' Mulhuijzen <[email protected]> |
Scanning dependencies of target tnzcore | |
[ 0%] Building CXX object tnzcore/CMakeFiles/tnzcore.dir/__/common/tcore/tdata.cpp.o | |
clang: warning: -Wl,-install_name,@rpath/libtnzcore.dylib: 'linker' input unused | |
In file included from /Users/keizo/product/opentoonz/toonz/sources/common/tcore/tdata.cpp:4: | |
In file included from /Users/keizo/product/opentoonz/toonz/sources/include/tconvert.h:76: | |
In file included from /Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qstring:1: | |
In file included from /Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qstring.h:43: | |
/Users/keizo/Qt5.5.1/5.5/clang_64/lib/QtCore.framework/Headers/qrefcount.h:48:22: error: expected ';' at end of | |
declaration list | |
inline bool ref() Q_DECL_NOTHROW { |
package main | |
import ( | |
"fmt" | |
"strconv" | |
) | |
type N (chan interface{}) | |
type Z int |