English 中文(简体)
如何在果园里拿一封信?
原标题:How to pick a letter in a charset?
  • 时间:2010-05-04 18:25:16
  •  标签:
  • rebol

希望:

letters: charset "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
pick letters 2

但是,如果我用char子把这封信带给第2号阵地,那就不了。

最佳回答

炭 the是“set”,因此实际上没有“沉积”的概念。 你们可以测试会员资格、区别对待、否定等等。 但是,它们只是优化。

如果你关注“计算命令”,那么,是执行命令而不是规定令的你的统计员。

Note this code from http://www.mail-archive.com/rebol-list@rebol.com/msg16432.html

bitset: charset "aaaaybcx"
chars: copy {}
for i 0 (subtract length? bitset 1) 1 [
    if find bitset i [append chars to-char i]
]
?? chars

如果你真的关心这一命令,就考虑维持一系列(例如扼杀!) 。 例如,在您的上述例子中,没有阻止你:

 letter-string: "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
 letter-set: charset letter-string
 pick letter-string 2

之后,你们都获得了两个世界的最佳成就!

问题回答

暂无回答




相关问题
Rebol Email Pop Server error

I have tested pop successufully with some POP servers with Rebol but it doesn t work with my hosting server dreamhost (which works with Outlook I have tested http://wiki.dreamhost.com/Outlook_Express )...

Rebol and /local Object

The new function below doesn t work if Obj is local. If I remove it from /local it works. So what to do to make it work with a local Obj thanks ? Sure not hard for you. Person: make object! [ Person:...

In Rebol How to get the Object Path Name (String)?

Let s say I have list: [system/history system/prompt] I want to convert to list-string: ["system/history" "system/prompt"] This may be an obvious answer but I can t see any :) Thanks.

What new Widgets in Rebol 3 Vid? [closed]

Rebol 2 VID was hugely missing Dropdownlist and Treeview, I have made a search on Rebol 3 on Google but couldn t find anything except a discussion. So what will Rebol 3 VID really include as new ...

热门标签