Seems to be easier than thought:

function xxx
    set listx \
    "foo" \
    "bar" \
    "zee"

    for item in $listx
        echo "item: $item"
    end
end


2015-08-19 18:08 GMT+02:00 Rostislav Svoboda <rostislav.svob...@gmail.com>:
>
> Hi, I'd like to create a collection and iterate over it. Something like:
>
> function zaz
>     set listx (
>     "foo"
>     "bar"
>     "zee"
>     )
>     for item in $listx
>         echo "item: $item"
>     end
> end
>
>
> but I cannot find any example how to do it. Can you help me pls? Thx.
>
------------------------------------------------------------------------------
_______________________________________________
Fish-users mailing list
Fish-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fish-users

Reply via email to