book
book copied to clipboard
第九代碼疑義
https://github.com/wenyan-lang/book/blob/a56c27e04de8e0cefa01abda22e55821a9a56fd7/09%20%E5%BA%9C%E5%BA%AB%E7%AC%AC%E4%B9%9D.md#L73-L78
此術已名「比」於跋,猶當結以是謂「比」之術也。
https://github.com/wenyan-lang/book/blob/a56c27e04de8e0cefa01abda22e55821a9a56fd7/09%20%E5%BA%9C%E5%BA%AB%E7%AC%AC%E4%B9%9D.md#L89
其中曰不得者。乃得零也。
,乃與列經本文相悖。縱循彼文,未尋得者應得負一也。孰正孰非?
Hi @747 Thanks for spotting the mistakes!
-
合->比 now fixed: d807775acdb4f89f0a24b79a0becebe177a7cab9
-
索一's return value: I thought about this, and ended up changing the standard library instead of changing the book :P Since in wenyan, arrays start at 1, I think it makes more sense to have 0 mean "not found". I did some searching and it seems like nobody is using the function anywhere yet. So I think it's safe to change the library.