Explorer

definy.some-strings

description
result followed by the strings of the some items from index
type
Fn(items: List<Union{#none, #some(String)}>, index: Number, result: List<String>) -> List<String>
expression
fn(items$0, index$1, result$2) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      $2,
    #some(item$3) =>
      @definy.some-strings(
        items: $0,
        index: @core.plus(left: $1, right: 1),
        result: match $3 {
          #some(value$4) =>
            @core.list-append(list: $2, item: $4),
          #none(_) =>
            $2
        }
      )
  }
visibility
public
definy.some-strings (project definy, branch main, snapshot lJpAw9BqYQqBEmdLe29QUgZrI1HBApaYuiMJ31XPtKw)
id: jlnZcILeaMALEkyuM3r-0vhw6ldYmG6K8gvhDrmr-ic
content hash: vjdGqy6rxHIXOqGApx50EbkWB9foz_AUAypg-YWL8es