MatchSuccess type

Successful match result

Direct parent types

MatchResult
Successful or unsuccessful match result
Direct subtypes: 2
Success
Successful computation
Direct subtypes: 1

Direct children types

ParamsMatchY
Undocumented

Methods

[](ms:MatchSuccess, idx:Int) Source: stdlib.ngs:5693
Convenience method to access matches in MatchSuccess

Example

("abc" ~ /a(.)c/)[1]  # "b"
Bool(ms:MatchSuccess) Source: stdlib.ngs:5558
Convert successful match to Bool (true)

Returns

true
get(ms:MatchSuccess) Source: stdlib.ngs:5565
Get the values of successfull match
init(ms:MatchSuccess, matches:Arr) Source: stdlib.ngs:5550
Successful match constructor