Skip to content

Missing builtins (bsearch and more) #293

@thaliaarchi

Description

@thaliaarchi

The following builtins defined in builtin.c are not supported by jaq:

  • tonumber/1
  • toboolean/1
  • keys/1
  • setpath/3
  • delpaths/2
  • type/1
  • bsearch/2
  • format/2
  • get_search_list/1
  • get_prog_origin/1
  • get_jq_origin/1
  • modulemeta/1
  • input_filename/1 (support input_filename #144)
  • input_line_number/1
  • have_decnum/1
  • have_literal_numbers/1

This list is probably not exhaustive. I noticed that jaq does not support bsearch, which is needed by wsjq and did a quick check of others that look to be missing which are implemented in the same place in jq.

Error: undefined filter
   ╭─[ws.jq]
   │
35 │   bsearch($offset) as $i |
   ┆   ───┬───                 
   ┆      │                    
   ┆      ╰───────────────────── undefined filter
───╯

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions