JanetDocsPlaygroundI'm feeling luckyGitHub sign in

table/rawget



    cfunction
    src/core/table.c on line 344, column 1

    (table/rawget tab key)

    Gets a value from a table `tab` without looking at the prototype 
    table. If `tab` does not contain the key directly, the function 
    will return nil without checking the prototype. Returns the value 
    in the table.


1 exampleSign in to add an example
Loading...
(let [p @{:a 1}
      t @{:b 2}]
  (table/setproto t p)
  [(get t :a) (table/rawget t :a)])
# => '(1 nil)
sogaiuPlayground