Sequences - Xref - Types - action


App: regression/framework Page: sequence/a_first_parameter_an_action_does_not_take_is_the_store_the_type_or_the_count_it_names
PHP
HTML
sequence/a_first_parameter_an_action_does_not_take_is_the_store_the_type_or_the_count_it_names.pad
Result
{sequence '11..16', push='nums'/}[{reverse 'prime'}{$sequence} {/reverse}][{action:first 'prime'}{$sequence} {/action:first}][{action:splice 'nums', splice=2}{$sequence} {/action:splice}][{append 5}{$sequence} {/append}][{action:sort 'nums'}{$sequence} {/action:sort}][{action:shift 'nums', shift=2}{$sequence} {/action:shift}]

App: regression/framework Page: sequence/a_list_beside_a_store_pulled_is_the_parameter_of_an_action_that_takes_stores
PHP
HTML
sequence/a_list_beside_a_store_pulled_is_the_parameter_of_an_action_that_takes_stores.pad
Result
{sequence '1..3', push='a'/}[{action:append a, [7, 8]}{$sequence} {/action:append}][{a:append [7, 8]}{$sequence} {/a:append}][{action:intersection a, [2, 3, 9]}{$sequence} {/action:intersection}][{action:sort a, [0, 9]}{$sequence} {/action:sort}][{sequence [3, 1, 2], sort}{$sequence} {/sequence}]

App: regression/framework Page: sequence/a_parameter_after_the_first_is_read_by_what_the_one_before_it_was
PHP
HTML
sequence/a_parameter_after_the_first_is_read_by_what_the_one_before_it_was.pad
Result
{sequence '1..9', push='s'/}[{reverse '1..5', 'sum'}{$sequence} {/reverse}][{action:reverse '1..5', 'first'}{$sequence} {/action:reverse}][{reverse '1..5', 'first', 2}{$sequence} {/reverse}][{sequence 'prime', 3, 'reverse'}{$sequence} {/sequence}][{sum 'prime', 3}{$sequence} {/sum}][{set $a = 'sum'}{action:reverse s, $a}{$sequence} {/action:reverse}][{sequence '1..5', sort, 'reverse'}{$sequence} {/sequence}][{pull 's', 'shift', 2}{$sequence} {/pull}]

App: regression/framework Page: sequence/a_quoted_store_given_to_an_action_without_a_parameter_is_the_store_it_acts_on
PHP
HTML
sequence/a_quoted_store_given_to_an_action_without_a_parameter_is_the_store_it_acts_on.pad
Result
[{sequence '1..5', push='s'/}{sum 's'}{$sequence}{/sum}|{action:sum 's'}{$sequence}{/action:sum}|{average 's'}{$sequence}{/average}][{set $st = 's'}{action:count $st}{$sequence}{/action:count}][{sequence '3;1;2', push='nums'/}{action:first 'nums'}{$sequence} {/action:first}][{sum 'prime'}{$sequence}{/sum}]

App: regression/framework Page: sequence/a_type_named_by_a_parameter_while_the_type_is_settled_plays_on_it
PHP
HTML
sequence/a_type_named_by_a_parameter_while_the_type_is_settled_plays_on_it.pad
Result
[{prime 'even', rows=4}{$sequence} {/prime}|{prime even, rows=4}{$sequence} {/prime}][{sequence 'prime', 'square', rows=3}{$sequence} {/sequence}][{reverse 'prime', 'even', rows=4}{$sequence} {/reverse}][{keep:prime 'even'}{$sequence} {/keep:prime}]

App: regression/framework Page: sequence/an_action_given_by_action_after_its_own_prefix_is_one_mention
PHP
HTML
sequence/an_action_given_by_action_after_its_own_prefix_is_one_mention.pad
Result
{sequence '1..6', push='a'/}[{a:shift action='shift|3'}{$sequence} {/a:shift}|{pull:a}{$sequence} {/pull:a}]{sequence '1..6', push='a'/}[{a:pop action='pop|2'}{$sequence} {/a:pop}|{pull:a}{$sequence} {/pull:a}]{sequence '1..6', push='a'/}[{action:first a, action='first|3'}{$sequence} {/action:first}][{a:reverse action='reverse'}{$sequence} {/a:reverse}][{a:splice action='splice|1|2'}{$sequence} {/a:splice}]

App: regression/framework Page: sequence/an_action_named_by_its_prefix_takes_its_count_from_the_option_of_its_name
PHP
HTML
sequence/an_action_named_by_its_prefix_takes_its_count_from_the_option_of_its_name.pad
Result
{sequence '1..6', push='a'/}[{a:shift shift=3}{$sequence} {/a:shift}|{pull:a}{$sequence} {/pull:a}]{sequence '1..6', push='a'/}[{action:first a, first=3}{$sequence} {/action:first}][{action:minimum a, minimum=3}{$sequence} {/action:minimum}][{sequence:last a, last=3}{$sequence} {/sequence:last}][{action:shift a, 2}{$sequence} {/action:shift}|{pull:a}{$sequence} {/pull:a}]{sequence '1..6', push='a'/}[{a:first reverse, first=2}{$sequence} {/a:first}]

App: regression/framework Page: sequence/the_store_the_tag_pulls_named_again_is_that_store
PHP
HTML
sequence/the_store_the_tag_pulls_named_again_is_that_store.pad
Result
{sequence '1..6', push='s'/}[{pull:s 's'}{$sequence} {/pull:s}][{pull:s 's', 'reverse'}{$sequence} {/pull:s}][{s:sum 's'}{$sequence} {/s:sum}]

App: sequence Page: check/combo

App: sequence Page: check/reverse

App: sequence Page: check/store

App: sequence Page: check/sum

App: sequence Page: concepts/actions

App: sequence Page: specials/shift

App: tags Page: examples/action/1-store
PHP
HTML
examples/action/1-store.pad
Result
{meta title='An action over a store', about='Reverse, the first two and the sum of a stored list - the store keeps its order.'}
{sequence '1..6', push='six'}
<p>reverse: {action six, reverse}{$sequence} {/action}</p>
<p>first=2: {action six, first=2}{$sequence} {/action}</p>
<p>sum: {action:sum six}{$sum}{/action:sum}</p>
<p>store: {pull six}{$sequence} {/pull}</p>