【问题标题】:is zip function in the standard sml basis library?标准 sml 基础库中的 zip 函数是什么?
【发布时间】:2018-03-24 04:36:40
【问题描述】:

我正在尝试实现一个函数,该函数从两个 int 列表创建一个列表以形成对。但是当我尝试运行 zip 时,它告诉我这是一个未绑定的变量。库中是否还有其他功能可以使用折叠程序完成相同的工作或某些 zip 定义?

【问题讨论】:

    标签: sml smlnj


    【解决方案1】:

    试试ListPair.zip 或ListPair.zipEq。另请参阅标准基础库中的specification of the ListPair structure。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2016-11-24
      • 1970-01-01
      • 1970-01-01
      • 2021-08-29
      • 1970-01-01
      相关资源
      最近更新 更多