Skip to content

Commit

Permalink
type examples for cons_list.concat
Browse files Browse the repository at this point in the history
  • Loading branch information
mccraigmccraig committed Dec 12, 2023
1 parent c8beb46 commit 3ed3876
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/cons_list.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,6 +266,12 @@ export const appa = append<number>()(a, 100)
export const appb = append<number>()(b, 100)
export const appc = append<number>()(c, 100)

// concatenate lists
export const conn = concat<number>()(None, None)
export const conna = concat<number>()(None, c)
export const connb = concat<number>()(c, None)
export const connc = concat<number>()(c, c)

// convert to a tuple
export const tupn = toTuple<number>()(None)
export const tupa = toTuple<number>()(a)
Expand Down

0 comments on commit 3ed3876

Please sign in to comment.