Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

piece function (See related posts)

    piece: func [
        {Returns one item from a series of fixed size "pieces".}
        series [series!]
        index  [integer!] "Item number, not series offset"
        size   [integer!] "Size of each piece in the series"
    ][
        ; Remember there is no precedence to math ops; just left-to-right.
        copy/part at series (index - 1 * size + 1) size
    ]

You need to create an account or log in to post comments to this site.


Click here to browse all 5140 code snippets

Related Posts