filter_by

NAML documentation   Watch a video
   Usages of this macro
... in utilities.naml
904
905
906
907
908
909
910
911
<macro name="filter_by" requires="list" dot_parameter="filter">
    <n.loop
Macro
Requires: sequence
Parameters: by, do
.>
        <n.if
Binary
Namespace: BasicNamespace
Parameters: condition, else, then
.not
Binary
Namespace: BasicNamespace
Parameters: condition
.filter>
            <then.remove_current_element
Binary
Namespace: ListSequence
/>
        </n.if.not.filter>
    </n.loop.>
    <n.reset_list_index
Binary
Namespace: ListSequence
/>
</macro>