会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
bigwhite
博客园
首页
新随笔
联系
订阅
管理
2015年8月18日
Effective Erlang —— 二进制型的构造和匹配
摘要: 在 R12B 中,构造和匹配二进制型最自然的方式比前版中的要快得多。你可用如下简单的代码来构造一个二进制型:这么写(在 R12B 中)/求别这么写(在 R12B 之前的版本中)my_list_to_binary(List) -> my_list_to_binary(List, >).my_list_...
阅读全文
posted @ 2015-08-18 13:55 bigwhite
阅读(127)
评论(0)
推荐(0)
2015年3月14日
七周七语言 Ruby 第一次作业
摘要: 1 puts "hello world" 2 3 "Hello, Ruby.".index("Ruby.") 4 5 x = 0 6 puts "bigwhite" while (x = x + 1) r14 puts "value is #{r} less" if x < r15 puts...
阅读全文
posted @ 2015-03-14 23:14 bigwhite
阅读(143)
评论(0)
推荐(0)
2015年1月26日
[leetcode] 01 Two Sum
摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu...
阅读全文
posted @ 2015-01-26 23:39 bigwhite
阅读(121)
评论(0)
推荐(0)
2015年1月23日
Erlang 中处理 register 重复注册
摘要: -module(demo).-compile(export_all).foo() -> receive after 100000 -> io:format("ok~n") end.main() -> register(name1, spawn(fun()...
阅读全文
posted @ 2015-01-23 22:26 bigwhite
阅读(295)
评论(0)
推荐(0)
公告