def line.if

bend-kit-notch@0.4.0.0 · notch.bend:224

import bend-kit-notch@0.4.0.0/notch.bend as Notch
import Base

224def line.if(on: Bool, lg: Logger, t: Maybe<&2, String>, lvl: Level, msg: String,
225  fs: List<&2, Field>) -> Maybe<&2, String>:
226  match on:
227    case True{}:
228      Some{render(lg, t, lvl, msg, fs)}
229    case False{}:
230      None{}

Uses (8)

Used by (1)