Fork: Difference between revisions

150 bytes removed ,  8 years ago
m
→‎{{header|LFE}}: Tweaked for LFE
(Added Elixir)
m (→‎{{header|LFE}}: Tweaked for LFE)
Line 641:
 
=={{header|LFE}}==
<lang lisp>
;;;
;;; This is a straight port from the Erlang version.
;;;
;;; You can run this in the LFE REPL by slurping the file:
;;;
;;; > (slurp "fork.lfe")
;;; > (start)
;;;
(defmodule fork
(export (start 0)))
 
{{trans|Erlang}}
 
;;; You can run this in the LFE REPL by slurping the fileas-is:
 
<lang lisp>
(defun start ()
(spawn (lambda () (child))))
Anonymous user