PlantUML 1.2020.23 言語リファレンスガイド
Default argument value In both procedure and return functions, you can define default values for arguments. PlantUML 言語リファレンスガイド (1.2020.23) 274 / 305 20.9 Unquoted procedure or function [!unquoted] 20 Alice -> Bob : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !procedure defaulttest($x, quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob : id(aa) PlantUML 言語リファレンスガイド (1.2020.23) 275 / 305 20.10 Keywords arguments 20 前処理 alice0 码力 | 306 页 | 3.19 MB | 1 年前3PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2020.22)
Default argument value In both procedure and return functions, you can define default values for arguments. PlantUML 言語リファレンスガイド (1.2020.22) 262 / 293 20.9 Unquoted procedure or function [!unquoted] 20 Alice -> Bob : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !procedure defaulttest($x, quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob : id(aa) PlantUML 言語リファレンスガイド (1.2020.22) 263 / 293 20.10 Keywords arguments 20 前処理 alice0 码力 | 294 页 | 3.11 MB | 1 年前3KiCad 8.0 PCB Editor
[(layer)] [(condition )] (constraint [constraint_arguments])) The custom rules file may also include comments to describe rules. Comments are denoted by any The syntax for using properties and functions is 0 码力 | 204 页 | 6.90 MB | 1 年前3PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.1)
Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 言語リファレンスガイド (1.2021.1) 350 / 392 24.9 Unquoted quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob : id(aa) alice -> bob : id(ab,cd) @enduml 24.10 Keywords arguments Like in Python0 码力 | 393 页 | 4.27 MB | 1 年前3PlantUML を使った UML の描き方 - PlantUML 言語リファレンスガイド(Version 1.2021.2)
Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 言語リファレンスガイド (1.2021.2) 356 / 398 25.9 Unquoted quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob : id(aa) alice -> bob : id(ab,cd) @enduml 25.10 Keywords arguments Like in Python0 码力 | 399 页 | 4.33 MB | 1 年前3PlantUML 1.2019.9 言語リファレンスガイド
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. You have to use my_own_definelong() because my_own_definelong without 6 Default argument value In both return and void functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. @startuml !function defaulttest($x, $y="DefaultY"0 码力 | 175 页 | 2.02 MB | 1 年前3PlantUML 1.2021.3 言語リファレンスガイド
Default argument value In both procedure and return functions, you can define default values for arguments. @startuml !function $inc($value, $step=1) !return $value + $step !endfunction Alice -> Bob : : Just one more $inc(3) Alice -> Bob : Add two to three : $inc(3, 2) @enduml Only arguments at the end of the parameter list can have default values. PlantUML 言語リファレンスガイド (1.2021.2) 368 / 411 25.9 Unquoted quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") !return $text1 + $text2 alice -> bob : id(aa) alice -> bob : id(ab,cd) @enduml 25.10 Keywords arguments Like in Python0 码力 | 412 页 | 4.46 MB | 1 年前3PlantUML 1.2019.6 言語リファレンスガイド
replaced by builtin functions (for example %date()) • When calling a legacy !definelong macro with no arguments, you do have to use parenthesis. That is you have to use my_own_definelong() because my_own_definelong possible to use the unquoted keyword to indicate that a function does not require quotes for its arguments. @startuml !unquoted function id($text1, $text2="FOO") return $text1 + $text2 PlantUML 言語リファレンスガイド the length of a String %strlen("foo") 3 in the example %substr Extract a substring. Takes 2 or 3 arguments| %substr("abcdef", 3, 2) "de" in the example %strpos Search a substring in a string %strpos("abcdef"0 码力 | 174 页 | 1.99 MB | 1 年前3JavaScript Promiseの本 v2
が静的に決定できる • function キーワードに比べて短く書くことができる • new できない(コンストラクタ関数ではない) 7 JavaScript Promiseの本 • arguments 変数を参照できない(Rest Parametersを代わりに利用 する) Arrow Functionを使うことで、コールバック関数を関数式に比べて短く 簡潔に書くことができます。 そのため、この書籍ではArrow }); return target; } function TimeoutError() { const superInstance = Error.apply(null, arguments); copyOwnFrom(this, superInstance); } TimeoutError.prototype = Object.create(Error.prototype); }); return target; } function TimeoutError() { const superInstance = Error.apply(null, arguments); copyOwnFrom(this, superInstance); 88 JavaScript Promiseの本 } TimeoutError.prototype = Object0 码力 | 137 页 | 1.17 MB | 1 年前3JavaScript Promiseの本 v1
}); return target; } function TimeoutError() { var superInstance = Error.apply(null, arguments); copyOwnFrom(this, superInstance); } TimeoutError.prototype = Object.create(Error.prototype); }); return target; } function TimeoutError() { var superInstance = Error.apply(null, arguments); copyOwnFrom(this, superInstance); } TimeoutError.prototype = Object.create(Error.prototype); ArrayAsPromise.prototype[methodName] = function () { var that = this; var args = arguments; this.promise = this.promise.then(function () { that.array = Array.prototype[methodName]0 码力 | 115 页 | 1.06 MB | 1 年前3
共 17 条
- 1
- 2