A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://reference.wolfram.com/language/workflow/DefineAFunctionWithOptions.html below:

Define a Function with Options—Wolfram Documentation

WOLFRAM Consulting & Solutions

We deliver solutions for the AI era—combining symbolic computation, data-driven insights and deep technical expertise

WolframConsulting.com

Define a Function with Options

Use options in user-defined functions.

Define a functions options

Define the options for a function named shout, giving the options default values:

Define the function, including OptionsPattern[] as the last argument

Begin the definition of the shout function, giving OptionsPattern[] as the last argument. OptionsPattern[] indicates that options can occur in that position:

Refer to option values in the function body

Complete the function definition, referring to option values in the body of the function with OptionValue:

Use the functions options

Invoking the function without options uses the default values of the options:

Give options to change the defaults:


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4