aboutsummaryrefslogtreecommitdiff
path: root/README
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2013-10-30 13:44:41 +0100
committerGuido Günther <agx@sigxcpu.org>2013-10-30 16:32:44 +0100
commit08efa5f7d2f95a608d1712a8d684aed6c3a1aa4a (patch)
treee50b6c11ee452f0e36af92418fee9512929d30e1 /README
Initial commit
Diffstat (limited to 'README')
-rw-r--r--README14
1 files changed, 14 insertions, 0 deletions
diff --git a/README b/README
new file mode 100644
index 0000000..6a6f1d7
--- /dev/null
+++ b/README
@@ -0,0 +1,14 @@
+Some proplist helpers
+=====================
+
+Delete all properties named foo or bar:
+
+ 1> proplutils:delete([foo, bar], [{foo, "does"}, {bar, "not"}, {baz, "matter"}]).
+ [{baz,"matter"}]
+
+Delete all properties that aren't named foo or bar:
+
+ 1> proplutils:delete_except([foo, bar], [{foo, "does"}, {bar, "not"}, {baz, "matter"}]).
+ [{foo,"does"},{bar,"not"}]
+
+