bytes->get

Returns one byte by position.

Target member

Signature

1bytes->get(position::integer)

Returns one byte by position.

bytes->get is called with member syntax on a receiver value. bytes->get works with binary values. Convert strings to bytes before byte-level hashing or encoding, then convert back to a string only for display or transport.

Parameters

position
Required value of type integer. Supply position positionally unless the signature shows a keyword form.

Examples

Basic call

1bytes('abc')->get(1)
The example keeps binary work on bytes and converts only when text output is needed.