文件名称:compare:用于生成cmp函数的ReasonML助手
文件大小:8KB
文件格式:ZIP
更新时间:2024-05-17 08:18:08
sorting ocaml sort compare reasonml
比较 用于生成cmp函数的ReasonML帮助器。 用法 module Comparator = Belt . Id . MakeComparable ({ type t = string ; let cmp = Compare . concat( [ Compare . by(key => key) , Compare . by(key => String . length(key)) , ] ) ; }) ; type t = Belt . Map . t ( Comparator . t , int , Comparator . identity ) ; let ourMap = Belt . Map . fromArray(~id = ( module Comparator ) , [| ( "a"
【文件预览】:
compare-master
----package.json(809B)
----LICENSE(16KB)
----src()
--------compare.bs.js(1015B)
--------compare.re(498B)
----bsconfig.json(280B)
----.gitignore(193B)
----README.md(501B)