polyfill_base_pipe: Turn "|" operator followed by ">" operator into "|>" operator

View source: R/polyfill_base_pipe.R

polyfill_base_pipeR Documentation

Turn "|" operator followed by ">" operator into "|>" operator

Description

Rejig the value columnm of sourcetools::tokenize_string(), such that base pipe is a first class operator - appears in the value column as "|>".

Usage

polyfill_base_pipe(source_tokens)

Details

This allows all the other infix machinery to handle base pipe as a regular infix operator.

Author(s)

Miles McBain


MilesMcBain/breakerofchains documentation built on Nov. 23, 2022, 8:53 p.m.