To reference or cite the objects present in the Software Heritage archive, permalinks based on SoftWare Hash IDentifiers (SWHIDs) must be used. Select below a type of object currently browsed in order to display its associated SWHID and permalink.
This interface enables to generate software citations, provided that the root directory of browsed objects contains a citation.cff or codemeta.json file. Select below a type of object currently browsed in order to generate citations for them.
Generate software citation in BibTex format (requires biblatex-software package)
Generating citation ...
type 'a t = 'a list
let empty = []
(* exceptions *)
exception UnboundVariable
(* offset : string -> xs -> int *)
let offset x xs =
let rec loop xs n = match xs with
[] -> raise UnboundVariable
| first :: rest -> if x = first then n else loop rest (n + 1)
in
loop xs 0