Sequences - Xref - Keep - ceil


App: regression/framework Page: sequence/keep_remove_and_flag_look_for_a_value_within_the_ceiling_as_far_as_the_value
PHP
sequence/keep_remove_and_flag_look_for_a_value_within_the_ceiling_as_far_as_the_value.php
HTML
sequence/keep_remove_and_flag_look_for_a_value_within_the_ceiling_as_far_as_the_value.pad
Result
<?php

// A default reach of 100 candidates, so the values asked about stand past the terms made
// first: each is looked for as far as itself, whatever the terms made so far would project.

$padSeqDefaultTries = 100;

// The walks run far - a second or more of candidates - and the gate fetches twelve cases at
// once: the five seconds a sequence has by default ran out on a busy machine and the
// answer came back short. The budget is not what this case asserts. Nor is PHP's own limit:
// on a loaded machine the walk took more than its 30 seconds of processor time and the
// case ended on "Maximum execution time exceeded".

$padSeqMaxSeconds = 60;

set_time_limit ( 120 );

?>
[{sequence '150;500;1000;4000', keep, eval='@ + 1'}{$sequence} {/sequence}][{sequence '150;500;1000;4000', flag, eval='@ + 10'}{$sequence}{/sequence}][{sequence '1000;300;101', keep, eval='@ + 100'}{$sequence} {/sequence}][{sequence '200;400;600', keep, ceil=200}{$sequence} {/sequence}][{sequence '120;240', keep, floor=120}{$sequence} {/sequence}][{sequence '300;600;900', keep, round=300}{$sequence} {/sequence}][{sequence '500;1000;1500', remove, floor=500}{$sequence} {/sequence}][{sequence '202;203;6', keep, eval='@ le 100 ? @ * 3 : @ + 1'}{$sequence} {/sequence}][{sequence '500;7', keep, eval='@ le 100 ? 101 - @ : @'}{$sequence} {/sequence}]

App: sequence Page: keepRemoveFlag/ceil