设为首页收藏本站

LUPA开源社区

 找回密码
 注册
文章 帖子 博客
LUPA开源社区 首页 业界资讯 软件追踪 查看内容

Elixir 1.4.0正式版发布,函数式编程语言

2017-1-5 22:39| 发布者: joejoe0332| 查看: 742| 评论: 0|原作者: oschina|来自: oschina

摘要: Elixir 1.4.0 发布了,Elixir 是一种函数式编程语言,建立在Erlang虚拟机之上。它是一种动态语言,灵活的语法与宏支持,利用Erlang的能力来构建并发、分布式、容错应用程序与热代码升级。部分更新内容: AddDate.compa ...

Elixir 1.4.0 发布了,Elixir 是一种函数式编程语言,建立在Erlang虚拟机之上。它是一种动态语言,灵活的语法与宏支持,利用Erlang的能力来构建并发、分布式、容错应用程序与热代码升级。

部分更新内容:

  • [Calendar] Add Date.compare/2Time.compare/2NaiveDateTime.compare/2 and DateTime.compare/2

  • [Calendar] Support NaiveDateTime.add/3 and NaiveDateTime.diff/3 for adding seconds (up to microseconds) as well as the difference between two NaiveDateTimes in seconds (up to microseconds)

  • [Calendar] Add Date.leap_year?/1 and Date.day_of_week/1

  • [Calendar] Ensure DateTime and NaiveDateTime APIs work with any struct that provides the same set of fields as their respective struct. For example, a NaiveDateTime can be given to Date since it contains a superset of the fields in the Date struct

  • [Enum] Add Enum.map_every/2 that invokes the given function with every nth item

  • [Enum] Add min/2max/2min_max/2min_by/3max_by/3, and min_max_by/3 that allow a function specifying the default value when the enumerable is empty

  • [Enum] Introduce Enum.zip/1 to zip multiple entries at once

  • [Float] Introduce Float.ratio/1 that returns a tuple with the numerator and denominator as integers to retrieve the given float

  • [GenServer] Log warn on default handle_info/2 implementation

  • [Inspect] Support syntax coloring via the :syntax_color option

  • [Integer] Integer.digits/2 now accepts negative integers

  • [Integer] Add Integer.mod/2 and Integer.floor_div/2

  • ……

完整更新内容请查看发行日志

下载地址:


酷毙

雷人
1

鲜花

鸡蛋

漂亮

刚表态过的朋友 (1 人)

  • 快毕业了,没工作经验,
    找份工作好难啊?
    赶紧去人才芯片公司磨练吧!!

最新评论

关于LUPA|人才芯片工程|人才招聘|LUPA认证|LUPA教育|LUPA开源社区 ( 浙B2-20090187 浙公网安备 33010602006705号   

返回顶部