ChefIsAwesome
V2EX  ›  问与答

有没有哪个专门的名词描述这种函数?

  •  
  •   ChefIsAwesome · Oct 16, 2017 · 1417 views
    This topic created in 3248 days ago, the information mentioned may be changed or developed.

    对某个函数 fn = (a, b) -> c

    如果传入的参数与上一次传入的参数相同,则直接返回上一次执行的结果。跟 memoize 不同,它只保存前一次执行的结果,而不是所有的结果。

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   3310 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 11:44 · PVG 19:44 · LAX 04:44 · JFK 07:44
    ♥ Do have faith in what you're doing.