File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 95bdd6883b5dde9504701777ba81b3c5f15df52b Maintainer: takagi Status: ready -->
3
+ <!-- EN-Revision: 468e71623d4c2269ef237ce7ab5a2792dbd0e7b7 Maintainer: takagi Status: ready -->
4
+ <!-- Credits: mumumu -->
4
5
<sect1 xml : id =" language.types.callable" >
5
6
<title >コールバック / Callable</title >
6
7
47
48
48
49
<para >
49
50
一般的なユーザー定義関数とは異なり、
50
- <link linkend =" functions.anonymous" >無名関数</link > もパラメータとして渡せます。
51
+ <link linkend =" functions.anonymous" >無名関数</link > と
52
+ <link linkend =" functions.arrow" >アロー関数</link > もパラメータとして渡せます。
53
+ </para >
54
+
55
+ <para >
56
+ 一般的には、
57
+ <link linkend =" object.invoke" >__invoke()</link > を実装した任意のオブジェクトもパラメータとして渡せます。
51
58
</para >
52
59
53
60
<para >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" utf-8" ?>
2
2
<!-- $Revision$ -->
3
- <!-- EN-Revision: 8088fbe7ef741a952c44faf4a09131c78d4bfe82 Maintainer: takagi Status: ready -->
4
- <!-- CREDITS: hirokawa -->
3
+ <!-- EN-Revision: 468e71623d4c2269ef237ce7ab5a2792dbd0e7b7 Maintainer: takagi Status: ready -->
4
+ <!-- CREDITS: hirokawa,mumumu -->
5
5
<refentry xml : id =" function.is-callable" xmlns =" http://docbook.org/ns/docbook" >
6
6
<refnamediv >
7
7
<refname >is_callable</refname >
19
19
<methodparam choice =" opt" ><type >string</type ><parameter role =" reference" >callable_name</parameter ></methodparam >
20
20
</methodsynopsis >
21
21
<para >
22
- 引数の内容が、関数としてコール可能かどうかを調べます。
23
- 変数が有効な関数名かどうかを調べたり、配列の中に適切に
24
- エンコードされたオブジェクトと関数名が格納されているかどうかを
25
- 調べたりすることが可能です。
22
+ 引数の内容が、<type >callable</type > かどうかを調べます。
26
23
</para >
27
24
</refsect1 >
28
25
You can’t perform that action at this time.
0 commit comments