Was this page helpful?

List.Collect

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    list.Collect(list : list, key :  str) : list
    

    Collect all values from each map inside the list.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    list
    list The list value.
    key
    str The key map value.

     

    Result

    a list of all the values that match map keys inside the list

    Samples


    Output

    to find map keys in a list:

    {{ list.collect([{one:1, two:"cats"},{one: "testing", three: false},3], "one") }} 

     


    [ 1, "testing" ]
    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by