Explorer

definy.json-strings

description
The strings in the JSON values from index (the others are left out)
type
Fn(items: List<@definy.json>, index: Number) -> List<String>
expression
fn(items$0, index$1) =>
  match @core.list-get(list: $0, index: $1) {
    #none(_) =>
      [],
    #some(item$1003) =>
      @core.list-concat(
        left: match $1003 {
          #string(text$2) =>
            [$2],
          _ =>
            []
        },
        right: @definy.json-strings(items: $0, index: @core.plus(left: $1, right: 1))
      )
  }
visibility
public
definy.json-strings (project definy, branch main, snapshot l0VFjJZP174d8CbZWFoujAGTYjgsQu4uTq5uWCZaXgo)
id: 2VGlKRMo68QoD_WdeUNgkGb5cSv3BrtuCDH8Lue8KF4
content hash: Kc7IQDA2daR1XZ4h4RZuz0YuCJcX0MmAjl0k5LyUu_k