repo.or.cz
/
sqlgg.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
test case for #57
[sqlgg.git]
/
src
/
props.ml
blob
95eb6d6b05df188a2cd4594554ab3b37e42b6044
1
(** Association list *)
2
open
ExtLib
3
4
type
t
= (
string
*
string
)
list
5
6
let
get
x n
=
try
Some
(
List
.
assoc n x
)
with
Not_found
->
None
7
let
get_all
x n
=
List
.
filter_map
(
fun
(
k
,
v
) ->
if
k
=
n
then
Some v
else
None
)
x
8
let
set
x n v
= (
n
,
v
)::
x
9
let
empty
= []