by pwnstigator · 16y ago · 0 comments
For example, a function that creates a user account with a unique numerical user ID, that isn't known until the account is created, can return the user's ID, e.g.
(create-user-account "Bob") => 9001
(defn create-acct-and-immediately-do-something [username]
(let [user-id (create-user-account username)]
(do-something-with-acct user-id)))No comments yet.