可以说我定义了几个词:
Word1: 5
Word2: "blahdiddyblah"
Run Code Online (Sandbox Code Playgroud)
是否有系统的某个部分或块存储正在使用的单词?
尝试过这样的事情,但失败了:
S1: to-block copy system/contexts/user
D: 3
S2: to-block copy system/contexts/user
Difference s1 s2
Run Code Online (Sandbox Code Playgroud)
根据@johnk的建议,我试过:
>> snapshot-of-words: words-of system/contexts/user
== [system snapshot-of-words words-of contexts user]
>> x: 1
== 1
>> difference snapshot-of-words words-of system/contexts/user
== [x difference]
>> difference snapshot-of-words words-of system/contexts/user
== [x difference]
>> 5 + 9
== 14
>> form ["hellow" "there" ]
== "hellow there"
>> difference snapshot-of-words words-of system/contexts/user
== [x difference + form]
Run Code Online (Sandbox Code Playgroud)
这是什么意思?本机函数在使用后被绑定到用户上下文中?有没有办法将这些与用户可能绑定的方法隔离开来?
在程序中使用zlib并注意到"foo"在Windows 1F8B080000000000000A4BCBCF07002165738C03000000和Linux 上压缩的方式有一点差异1F8B08000000000000034BCBCF07002165738C03000000.两者都解压缩回"foo"
我决定在我们的代码外部检查以确定实现是否正确并使用zlib存储库中的测试程序进行双重检查.我得到了相同的结果:
Linux的: echo -n foo| ./minigzip64 > text.txt'
视窗: echo|set /p="foo" | minigzip > text.txt
什么能解释这种差异?这是个问题吗?
1F8B 0800 0000 0000 000 *3/A* 4BCB CF07 0021 6573 8C03 0000 00
我正在尝试从我的Google帐户访问Feed,但我不知道如何发送用户和密码:
>> read https://mail.google.com/mail/feed/atom
** Access error: protocol error: "Authentication not supported yet"
>> read https://user:pass@mail.google.com/mail/feed/atom
** Access error: protocol error: "Authentication not supported yet"
Run Code Online (Sandbox Code Playgroud)
你怎么做到这一点?
我正在尝试在查看后为布局添加字段
view/no-wait m: [field "hello"]
insert tail m 'field
insert tail m "hello"
update-face m
** Script error: update-face does not allow block! for its face argument
Run Code Online (Sandbox Code Playgroud)
我想更新整个布局,而不仅仅是字段或其中的某些部分.如果我尝试使用
view m,它会打开一个新窗口.我只需要取消查看它然后再查看吗?
我正在努力深入研究功能性思维,并通过练习解决方案(99个问题).
第一个问题是创建一个返回列表最后一个元素的函数.
我看到了解决方案:
myLast = foldr1 (const id)
Run Code Online (Sandbox Code Playgroud)
据我所知,foldr1将一个函数应用于f列表l
所以如果我把它插入一个例子:
myLast [1,2,3,4,5,6,7]
Run Code Online (Sandbox Code Playgroud)
哪个会被"翻译成"
foldr1 (const id) [1,2,3,4,5,6,7]
Run Code Online (Sandbox Code Playgroud)
有人可以向我解释这个(const id)是如何逐步完成的.我尝试(const id)在SO以及Hoogle中进行研究,但对它没有多大意义.有人会帮我介绍一下这里发生的事情吗?