Wolfram Language & System 10.4 (2016)|Legacy Documentation

This is documentation for an earlier version of the Wolfram Language.View current documentation (Version 11.2)

AskAppend

AskAppend["key"]
is a construct for use inside AskFunction that asks for a new value, appends it to the current value associated with , and returns the resulting list.

AskAppend["key"formspec]
uses formspec to define how input should be requested and interpreted.

DetailsDetails

  • If there is no value yet associated with , AskAppend will put the new value it obtains in a list.
  • Executing AskAppend again with the same key will append each new value to the list associated with the key.
  • If there is an existing value associated with that was obtained from Ask, AskAppend will put this value in a list before appending a new value.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Ask a question several times, appending each answer to a list:

In[1]:=
Click for copyable input
Out[1]=

Use AskAppend to accumulate inputs:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2016
(10.4)