Did you know ... Search Documentation:
Pack iso4217 -- prolog/iso4217.pl
PublicShow source

This module loads `data/table.xml` to create clauses for iso4217/5 on the fly.

See also
- `data/table.xml` was extracted from https://pypi.org/project/iso4217/
 iso4217(?CtryNm, ?CcyNm, ?Ccy, ?CcyNbr, ?CcyMnrUnts) is nondet
True when the relation is true for a country. For example:
?- iso4217(CtryNm, CcyNm, 'EUR', CcyNbr, CcyMnrUnts).
CtryNm = 'Ă…LAND ISLANDS',
CcyNm = 'Euro',
CcyNbr = 978,
CcyMnrUnts = 2 ;
CtryNm = 'ANDORRA',
CcyNm = 'Euro',
CcyNbr = 978,
CcyMnrUnts = 2 ;
...

Note that SWI-Prolog JIT indexing makes the table efficient regardless of the query.

Arguments:
CtryNm- Country name
CcyNm- Currency name
Ccy- Currency code ([A-Z]{3})
CcyNbr- Currency number
CcyMnrUnts- Currency minor units
 iso4217_version(-Version) is det
True when Version is the version as in 'YYYY-MM-DD' (an atom). E.g.
?- iso4217_version(X).
X = '2024-06-25'.