Q7

Iterate over maps and lists

Details

  • Type: Improvement Improvement
  • Status: Resolved Resolved
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 1.3.7
  • Fix Version/s: 1.3.8
  • Component/s: ECL
  • Labels:
    None
  • Test Mode:
    Manual

Activity

Hide
komaz added a comment - 30/Sep/13 9:29 PM - edited

Added 'each' command:

map [entry from to] | each[val v] [val k] { concat $k " = " $v | log } // writes 'from = to'
list one two three | each[val v] [val i] { concat $i " = " $v | log } // writes '0 = one, 1 = two, 2 = three '
Show
komaz added a comment - 30/Sep/13 9:29 PM - edited Added 'each' command:
map [entry from to] | each[val v] [val k] { concat $k " = " $v | log } // writes 'from = to'
list one two three | each[val v] [val i] { concat $i " = " $v | log } // writes '0 = one, 1 = two, 2 = three '

People

  • Assignee:
    komaz
    Reporter:
    komaz
Vote (0)
Watch (0)

Dates

  • Created:
    30/Sep/13 9:27 PM
    Updated:
    04/Oct/13 2:26 PM
    Resolved:
    30/Sep/13 9:29 PM