Skip to content

Commit

Permalink
Merge pull request #1 from zhabinka/master
Browse files Browse the repository at this point in the history
fix docs
  • Loading branch information
zhabinka committed Aug 15, 2019
2 parents cf4c7c4 + aca7a14 commit 8483ad4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.js
Expand Up @@ -12,16 +12,16 @@ export const attach = (tag, data) => pairs.cons(tag, data);
* Get type of tagged data
* @name typeTag
* @example
* attach('simpleTag', card);
* typeTag(taggedData); // simpleTag
* const tag = attach('simpleTag', card);
* typeTag(tag); // simpleTag
*/
export const typeTag = taggedData => pairs.car(taggedData);

/**
* Get contents from tagged data
* @name contents
* @example
* attach('complexTag', cons(1, 2));
* typeTag(contents); // (1, 2)
* const tag = attach('complexTag', cons(1, 2));
* contents(tag); // (1, 2)
*/
export const contents = taggedData => pairs.cdr(taggedData);

0 comments on commit 8483ad4

Please sign in to comment.