Explorer

definy.localized-texts-literal-from

description
The values of literals { language, text } from index after accum
type
Fn(items: List<@core.expression>, index: Number, accum: List<@core.localized-text>) -> Union{#none, #some(List<@core.localized-text>)}
expression
fn(items$0, index$1, accum$2) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      #some($2),
    #some(item$3) =>
      match @definy.localized-text-literal(expr: $3) {
        #none(_) =>
          #none,
        #some(text$4) =>
          @definy.localized-texts-literal-from(items: $0, index: @core.plus(left: $1, right: 1), accum: @core.list-append(list: $2, item: $4))
      }
  }
visibility
public
definy.localized-texts-literal-from (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: BKpi_UyiBT2Kd2nJ8zttx4lvK3eVnOEHBH81jzMz7t8
content hash: ThxUnE9SI-Em5F8M41T8I76JBGagXu02i05fHSEiSFE