is color := color %
Black |
Red |
Green |
Yellow |
Blue |
Magenta |
Cyan |
White |
BrightBlack |
BrightRed |
BrightGreen |
BrightYellow |
BrightBlue |
BrightMagenta |
BrightCyan |
BrightWhite -> True
TrueColor [red, green, blue] -> int.isUnsignedByte red | bool.lazyAnd {int.isUnsignedByte green} | bool.lazyAnd {int.isUnsignedByte blue}
_ -> False
is color := color %
Black | Red |
Green | Yellow |
Blue | Magenta |
Cyan | White |
BrightBlack | BrightRed |
BrightGreen | BrightYellow |
BrightBlue | BrightMagenta |
BrightCyan |
BrightWhite
->
True
TrueColor [red, green, blue] ->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
Black | Red | Green | Yellow |
Blue | Magenta | Cyan | White |
BrightBlack | BrightRed | BrightGreen | BrightYellow |
BrightBlue | BrightMagenta |
BrightCyan |
BrightWhite
->
True
TrueColor [red, green, blue] ->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White |
BrightBlack | BrightRed | BrightGreen | BrightYellow |
BrightBlue | BrightMagenta |
BrightCyan |
BrightWhite
->
True
TrueColor [red, green, blue] ->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White |
BrightBlack | BrightRed | BrightGreen | BrightYellow |
BrightBlue | BrightMagenta |
BrightCyan |
BrightWhite
->
True
TrueColor [red, green, blue] ->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
(
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | BrightBlack | BrightRed
| BrightGreen
| BrightYellow
| BrightBlue
| BrightMagenta
| BrightCyan
| BrightWhite
)
->
True
TrueColor [red, green, blue]
->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | BrightBlack | BrightRed
| BrightGreen
| BrightYellow
| BrightBlue
| BrightMagenta
| BrightCyan
| BrightWhite
)
->
True
TrueColor [red, green, blue]
->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_ -> False
# Then:
is color := color %
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | BrightBlack | BrightRed
| BrightGreen
| BrightYellow
| BrightBlue
| BrightMagenta
| BrightCyan
| BrightWhite
)
->
True
TrueColor [red, green, blue]
->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_
->
False
# Then:
is color := color %
Black | Red | Green | Yellow | Blue | Magenta | Cyan | White | BrightBlack | BrightRed
| BrightGreen
| BrightYellow
| BrightBlue
| BrightMagenta
| BrightCyan
| BrightWhite
)
->
True
TrueColor [red, green, blue]
->
int.isUnsignedByte red | bool.lazyAnd { int.isUnsignedByte green }
| bool.lazyAnd { int.isUnsignedByte blue }
_
->
False
is color := color %
Black
| Red
| Green
| Yellow
| Blue
| Magenta
| Cyan
| White
| BrightBlack
| BrightRed
| BrightGreen
| BrightYellow
| BrightBlue
| BrightMagenta
| BrightCyan
| BrightWhite -> True
TrueColor [red, green, blue] ->
int.isUnsignedByte red | bool.lazyAnd {int.isUnsignedByte green}
| bool.lazyAnd {int.isUnsignedByte blue}
_ -> False
Input
Actual Output
Desired Output
Relevant Logs
No response
Additional Information
No response