• Preparing search index...
  • The search index is not available
Kombo - v3.0.0
  • Kombo - v3.0.0
  • Advanced
  • map

Function map

  • map<A, B>(fn: ((a: A) => B)): (<CTX, PROBLEM>(parser: Parser.Parser<A, CTX, PROBLEM>) => Parser.Parser<B, CTX, PROBLEM>)
  • Just like Simple.map.

    See

    • map is the infix version of map

    Type Parameters

    • A

    • B

    Parameters

    • fn: ((a: A) => B)
        • (a: A): B
        • Parameters

          • a: A

          Returns B

    Returns (<CTX, PROBLEM>(parser: Parser.Parser<A, CTX, PROBLEM>) => Parser.Parser<B, CTX, PROBLEM>)

      • <CTX, PROBLEM>(parser: Parser.Parser<A, CTX, PROBLEM>): Parser.Parser<B, CTX, PROBLEM>
      • Type Parameters

        • CTX

        • PROBLEM

        Parameters

        • parser: Parser.Parser<A, CTX, PROBLEM>

        Returns Parser.Parser<B, CTX, PROBLEM>

    • Defined in Advanced.ts:187
githubkombo-jsonkombo-workshop

Settings

Member Visibility

Theme

Modules

  • Kombo - v3.0.0
    • Advanced
    • Helpers
    • Parser
    • Result
    • Simple
  • Done
  • Loop
  • Nestable
  • Step
  • Token
  • Trailing
  • Nestable
  • Trailing
  • getCol
  • getIndent
  • getOffset
  • getPosition
  • getRow
  • getSource
  • spaces
  • Done
  • Loop
  • Token
  • andThen
  • apply
  • backtrackable
  • chompIf
  • chompUntil
  • chompUntilEndOr
  • chompWhile
  • chompWhile1
  • commit
  • end
  • float
  • getChompedString
  • inContext
  • int
  • isDone
  • isLoop
  • isNestable
  • isNotNestable
  • keyword
  • lazy
  • lineComment
  • loop
  • many
  • many1
  • map
  • map2
  • mapChompedString
  • multiComment
  • number
  • oneOf
  • oneOfMany
  • optional
  • problem
  • run
  • sequence
  • skip1st
  • skip2nd
  • succeed
  • symbol
  • token
  • variable
  • withIndent