1.概论
REBOL提供如下几种函数:
NATIVE、FUNCTION、MEZZANINE、OPERATOR、ROUTINE
2.求值函数
2.1参数
friend: luke@rebol.com
message: "message in a bottle"
send friend message
send luke@rebol.com "message in a bottle"
send friend
** Script Error: send is missing its message argument.
** Where: send friend
send friend message "urgent"
send friend detab copy message
send friend (detab (copy message))
file: %image
insert tail insert file %graphics/ %.jpg
print file
graphics/image.jpg
insert (tail (insert file %graphics/)) %.jpg
2.2参数数据类型
send 1234 "numbers"
** Script Error: send expected address argument of type: email block.
** Where: send 1234 "numbers"
help send
USAGE:
SEND address message /only /header header-obj
DESCRIPTION:
Send a message to an address (or block of addresses)
SEND is a function value.
ARGUMENTS:
address -- An address or block of addresses (Type: email block)
message -- Text of message. First line is subject. (Type: any)
REFINEMENTS:
/only -- Send only one message to multiple addresses
/header -- Supply your own custom header
header-obj -- The header to use (Type: object)
send luke@rebol.com $1000.00
2.3精化
copy/part (copy just part of a string)
find/tail (return the tail of the match)
load/markup (return XML/HTML tags and strings)
find/case/tail (match case and return tail)
insert/only/dup (insert entire block multiple times)
string: "no time like the present"
print copy string
no time like the present
print copy/part string 7
no time
help copy
USAGE:
COPY value /part range /deep
DESCRIPTION:
Returns a copy of a value.
COPY is an action value.
ARGUMENTS:
value -- Usually a series (Type: series port bitset)
REFINEMENTS:
/part -- Limits to a given length or position.
range -- (Type: number series port)
/deep -- Also copies series values within the block.
str: "test"
insert/dup/part str "this one" 4 5
print str
this this this this test
str: "test"
insert/part/dup str "this one" 4 5
print str
thisthisthisthisthistest
分享到:
相关推荐
Python从入门到精通 第9章 函数.ppt Python从入门到精通 第10章 面向对象程序设计.ppt Python从入门到精通 第11章 模块.ppt Python从入门到精通 第12章 异常处理及程序调试.ppt Python从入门到精通 第13章 文件及...
C++基础课件第九章函数的高级应用.ppt
同济版考研高数第9章
【课程列表】 Python基础入门教程 由浅入深讲解清晰 第1章 基础知识 (共44页).ppt Python基础入门教程 由浅入深讲解清晰 第2章 Python序列 (共...Python基础入门教程 由浅入深讲解清晰 第9章 GUI编程 (共43页).ppt
复变函数第二版第九章答案,华中科技大学,拉普拉斯变换那一章的答案
第九章 Directories函数 第十章 FilePro函数 第十一章 FileSystem函数 第十二章 Stream函数 第五篇 网络通信篇 第十三章 Socket函数 第十四章 SNMP函数 第十五章 Session函数 第十六章 URL函数 第十七章 Mail函数 ...
第9章 日期函数 第10章 类型转换函数 第11章 异常处理函数 第12章 文件处理函数 第13章 图形计算与处理函数 第14章 格式化函数 第15章 对话框函数 第16章 打印机函数 第17章 COM实用函数 第18章 窗口控制...
视频教程
2021高考数学一轮复习第二章函数第9节函数与数学模型练习
第9章 日期函数 第10章 类型转换函数 第11章 异常处理函数 第12章 文件处理函数 第13章 图形计算与处理函数 第14章 格式化函数 第15章 对话框函数 第16章 打印机函数 第17章 COM实用函数 第18章 窗口控制...
第九章 Directories函数 第十章 FilePro函数 第十一章 FileSystem函数 第十二章 Stream函数 第五篇 网络通信篇 第十三章 Socket函数 第十四章 SNMP函数 第十五章 Session函数 第十六章 URL函数 第十七章 Mail函数 ...
第9章 数据结构函数 第10章 随机数函数 第11章 初级 I/O 函数 第12章 标准I/O函数 第13章 进程及流程控制 第14章 格式化输入输出函数 第15章 文件及目录函数 第16章 信号函数 第17章 错误处理函数 第18章 管道相关...
第9章 定义类 第10章 定义类成员 第11章 集合、比较和转换 第12章 泛型 第13章 其他OOP技术 第14章 C#3.0语言的改进 第2部分 Windows编程 第15章 Windows编程基础 第16章 Windows Forms的高级功能 第17章 使用通用...
2021高考数学一轮复习第2章函数与基本初等函数第9讲函数模型及其应用课件新人教B版
第9章 分组函数
POINTERS ON C 第九章编程练习12-14,获得密钥,并加解密。VC6.0编译通过。
2021高考数学一轮复习第2章函数与基本初等函数第9讲函数模型及其应用课时作业含解析新人教B版
浙江专用2021版新高考数学一轮复习第二章函数概念与基本初等函数9第9讲函数模型及其应用高效演练分层突破
2022届高考数学一轮复习第二章函数导数及其应用第九节函数模型及其应用课时规范练含解析文北师大版20210706161
视频教程