如果您正在运行顶层,则需要exstring.cmo在其路径中(简单的方法是ocaml在同一目录中运行extstring.cmo).然后,你可以这样做:
# #load "extstring.cmo";;
# Extstring.split "a.b" '.' 2;;
[..]
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
1959 次 |
| 最近记录: |