def is_fuel

bolt@1.27.0.0 · src/rules/pedantic/fuel.bend:40

import bolt@1.27.0.0/src/rules/pedantic/fuel.bend as Fuel
import Base

40# is it a fuel parameter's name?
41def is_fuel(+nn: String) -> Bool:
42  Bool.or(String.starts_with(nn, "fuel"),
43    List.contains(~String, ~String.eq, ["gas", "steps", "budget"], nn))

Uses (7)

Used by (1)