package biocaml

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Source file strand.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18


type t = char

let minus = '-'
let plus = '+'

let of_string s = match String.lowercase s with
  | "-" | "rev" -> Ok minus
  | "+" | "fwd" -> Ok plus
  | _ -> error "unknown strand name" s sexp_of_string

let minus_plus = Fn.id

let rev_fwd = function
  | '-' -> "rev"
  | '+' -> "fwd"
  | _ -> assert false
OCaml

Innovation. Community. Security.