Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (defn new-position-id
- "creates a new, unique position id"
- []
- (let [new-id (random-id 8)]
- (if-not (position new-id) new-id (new-position-id))))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement