Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update description of sliceByteString builtin #50

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion builtin-functions.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ This document serves as a reference to the Plutus Core builtin functions, aka [`
| LessThanEqualsInteger | `Integer -> Integer -> Bool` | 0 | LTE comparison between two integers. | `LessThanEqualsInteger 1 1 -- True` |
| AppendByteString | `ByteString -> ByteString -> ByteString` | 0 | Concatenate two bytestrings. | `AppendByteString 0xfe 0xab -- 0xfeab` |
| ConsByteString | `Integer -> ByteString -> ByteString` | 0 | Prepend a byte, represented by a natural number (`Integer`), to a bytestring. | `ConsByteString 65 0xab -- 0x41ab` |
| SliceByteString | `Integer -> Integer -> ByteString -> ByteString` | 0 | Slice a bytestring using given indices (inclusive on both ends). | `SliceByteString 1 3 0x4102afde5b2a -- 0x02afde` |
| SliceByteString | `Integer -> Integer -> ByteString -> ByteString` | 0 | Returns the substring of the third argument of length specified as second argument starting at the position specified with the first argument; indexing is zero-based. | `SliceByteString 1 3 0x4102afde5b2a -- 0x02afde` |
| LengthOfByteString<sup>1</sup> | `ByteString -> Integer` | 0 | Get the length of a bytestring. | `LengthByteString 0x4102afde5b2a -- 6` |
| IndexByteString | `ByteString -> Integer -> Integer` | 0 | Get the byte at given index from a bytestring. | `IndexByteString 0x4102afde5b2a 2 -- 175` |
| EqualsByteString | `ByteString -> ByteString -> Bool` | 0 | Equality between two bytestrings. | `EqualsByteString 0xab 0xab -- True` |
Expand Down