Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
XQuery
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
samples
LICENSE
README.md
hamt.xq
hashmap.xq

README.md

library module: http://snelson.org.uk/functions/hamt

Table of Contents

Functions

is#1

is($hamt as item()
) as  xs:boolean

Params

  • $hamt as item()

Returns

  • xs:boolean

create#0

create(
) as  item()

Returns

  • item()

put#4

put(
  $hf as function(item()) as xs:integer,
  $eq as function(item(),item()) as xs:boolean,
  $hamt as item(),
  $k as item()
) as  item()

Params

  • $hf as function(item()) as xs:integer

  • $eq as function(item(),item()) as xs:boolean

  • $hamt as item()

  • $k as item()

Returns

  • item()

delete#4

delete(
  $hf as function(item()) as xs:integer,
  $eq as function(item(),item()) as xs:boolean,
  $hamt as item(),
  $k as item()
) as  item()

Params

  • $hf as function(item()) as xs:integer

  • $eq as function(item(),item()) as xs:boolean

  • $hamt as item()

  • $k as item()

Returns

  • item()

get#4

get(
  $hf as function(item()) as xs:integer,
  $eq as function(item(),item()) as xs:boolean,
  $hamt as item(),
  $k as item()
) as  item()?

Params

  • $hf as function(item()) as xs:integer

  • $eq as function(item(),item()) as xs:boolean

  • $hamt as item()

  • $k as item()

Returns

  • item()?

contains#4

contains(
  $hf as function(item()) as xs:integer,
  $eq as function(item(),item()) as xs:boolean,
  $hamt as item(),
  $k as item()
) as  xs:boolean

Params

  • $hf as function(item()) as xs:integer

  • $eq as function(item(),item()) as xs:boolean

  • $hamt as item()

  • $k as item()

Returns

  • xs:boolean

describe#1

describe(
  $hamt as item()
) as  xs:string

Params

  • $hamt as item()

Returns

  • xs:string

fold#3

fold(
  $f as function(item()*,item()) as item()*,
  $z as item()*,
  $hamt as item()
) as  item()*

Params

  • $f as function(item()*,item()) as item()*

  • $z as item()*

  • $hamt as item()

Returns

  • item()*

count#1

count(
  $hamt as item()
) as  xs:integer

Params

  • $hamt as item()

Returns

  • xs:integer

empty#1

empty(
  $hamt as item()
) as  xs:boolean

Params

  • $hamt as item()

Returns

  • xs:boolean

Generated by xquerydoc

Something went wrong with that request. Please try again.