Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我有一个类型,例如保险号码是一个整数。
无论如何我可以将 insurancenumber 转换为 int 以用于比较函数吗?
intNI :: NI -> Int intNI x = Int (x)
如果,正如我所怀疑的,NI被定义为
NI
type NI = Int
那么你可以说
intNI :: NI -> Int intNI x = fromIntegral x
或者,在 eta 转换之后:
intNI :: NI -> Int intNI = fromIntegral
另一方面,似乎
data NI = NI Int
在这种情况下,正确的方法是模式匹配,如下所示:
intNI (NI x) = x
这将从中提取该x位NI x并将其返回。
x
NI x
我需要在我的表单中添加一些自定义的<input type=“file”>
<input type=“file”>
我尝试使用此代码
<div id="upload-file-container"> &
1 javascript - Ember js不更新列表从模板中的模型中检索
3 c# - 首先如何将 Icollectable 播种到数据库代码中
2 java - 使用自定义 IDResolver 的属性异常
2 java - JSONObject 包含转义字符
1 wordpress - 动态地将无限字段添加到 wordpress 自定义帖子
1 arrays - angularjs angular 不读取数组的长度
Reference php × 1429865 c/c++ × 756500 nginx × 49975 mongodb × 159057 mybatis × 3233 anaconda × 13410 pycharm × 14671 python × 1902243 vscode × 56040 docker × 110988 github × 49000 flask × 49129 ffmpeg × 24037 jmeter × 16910 matplotlib × 63493 bootstrap × 54641