Sha256: 093f5576288d2ef8222efb3af835dde77f2c4d608a0353195a96f11186a580fd

Contents?: true

Size: 1.03 KB

Versions: 22

Compression:

Stored size: 1.03 KB

Contents

EACH OBJECT TYPE
  NAME: each
  SHORTCUT: each

  DESCRIPTION
    Perform an action for each item in a collection.

  CHILDREN
    child | word | line | repo - string - none
      The entity we want to loop for.
      It will hold the current value while the script is running.
    in - string - none
      The collection we will iterate in.
      In the case of <word> or <line> this will be a string or text.
      In the case of <repo> this will be the root path.
    do - script - none
      The action we want to perform for each found item.

  MESSAGES
    run - Look through the collecion and perform this for each
      found item.

  EXAMPLE

    #
    # Show each child in a container.
    #

    for [each] :
    	child [alias] :
    	in [alias] : objs
    	do [script] : show for.child
    objs [can] :
      1 [string] : one
      2 [string] : two
      3 [string] : three

    #
    # Show each word in a string.
    #

    for [each] :
    	word [string] :
    	in [string] : one word at a time
    	do [script] : show for.word


  SEE ALSO

Version data entries

22 entries across 22 versions & 2 rubygems

Version Path
gloo-lang-1.0.2 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-1.0.0 lib/gloo/help/objs/ctrl/each.txt
gloo-lang-1.0.1 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-1.0.0 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.11 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.10 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.9 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.8 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.7 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.6 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.5 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.4 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-lang-0.9.3 lib/gloo_lang/help/objs/ctrl/each.txt
gloo-0.8.0 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.7 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.6 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.5 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.4 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.3 lib/gloo/help/objs/ctrl/each.txt
gloo-0.7.2 lib/gloo/help/objs/ctrl/each.txt