Skip to content

Commit

Permalink
Make has and at take inline parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
propensive committed Sep 16, 2024
1 parent 14287cf commit 2ba49fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/rudiments-core.scala
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ extension (iarray: IArray.type)
extension (bytes: Bytes)
def javaInputStream: ji.InputStream = new ji.ByteArrayInputStream(bytes.mutable(using Unsafe))

extension [ValueType: Indexable](value: ValueType)
extension [ValueType: Indexable](inline value: ValueType)
inline def has(index: ValueType.Operand): Boolean = ValueType.contains(value, index)

inline def at(index: ValueType.Operand): Optional[ValueType.Result] =
Expand Down

0 comments on commit 2ba49fe

Please sign in to comment.