Logo GenPRES

Substance Module

Creates the substances from the G-Standaard substance names, or reads the substances from the cache file when the cache file exists.

Functions and values

Function or value Description

_get arg1

Full Usage: _get arg1

Parameters:
    arg0 : 'a

Returns: Substance array
Type parameters: 'a
arg0 : 'a
Returns: Substance array

cache sbs

Full Usage: cache sbs

Parameters:

Write a Substance array to a cache file

sbs : Substance[]

create id pk nm ms mr fm un ds

Full Usage: create id pk nm ms mr fm un ds

Parameters:
    id : int
    pk : int
    nm : string
    ms : float
    mr : float
    fm : string
    un : string
    ds : float

Returns: Substance

Create a Substance

id : int
pk : int
nm : string
ms : float
mr : float
fm : string
un : string
ds : float
Returns: Substance

get

Full Usage: get

Returns: unit -> Substance[]

Get the Substance array

This is a memoized function

Returns: unit -> Substance[]

load ()

Full Usage: load ()

Parameters:
    () : unit

Load the Substance array

() : unit

parse ()

Full Usage: parse ()

Parameters:
    () : unit

Returns: Substance array

Parse the Zinc index file to create a Substance array

() : unit
Returns: Substance array

Type something to start searching.