~Onlooker 2013-02-21 13:30 采纳率: 0%
浏览 235
已采纳

对出租计划与出租计划的分别感到困惑

Can anyone explain the difference simply? I don't think I understand the concept from the textbooks/sites I have consulted.

转载于:https://stackoverflow.com/questions/15003518/confused-by-the-difference-between-let-and-let-in-scheme

  • 写回答

2条回答 默认 最新

  • 零零乙 2013-02-21 13:33
    关注

    If you use let, you can't reference bindings previously defined in the same let expression. For example, this won't work:

    (let ((x 10)
          (y (+ x 6))) ; error! unbound identifier in module in: x
      y)
    

    But if you use let*, it's possible to refer to previous bindings in the same let* expression:

    (let* ((x 10)
           (y (+ x 6))) ; works fine
      y)
    => 16
    

    It's all here in the documentation.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器