An intramedullary longitudinal implant (1) comprising a curved first end portion (2) which is provided with coupling means (3) by means of which the implant (1) may be inserted into or removed from the intramedullary space of a bone (4); and a second end portion (3) being straight in a first position and which may be elastically bent into a second position such that it may have a curvature equal to the curvature of the first end portion (2) without being permanently deformed.