fallthrough: Fall Through Match

Description Usage Value Examples

View source: R/fallthrough.R

Description

Stop execution of current return expression in Match, then continue attempting to match conditions.

Usage

1

Value

Object of class 'fallthrough'

Examples

1
2
3
4
5
6
7
8
9
Match(
  "abc",
  is.character -> {
    print("Found a character.")
    fallthrough()
  },
  "abc" -> "start of the alphabet",
  .     -> "found nothing"
)

matchr documentation built on Sept. 9, 2021, 5:07 p.m.

Related to fallthrough in matchr...