Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
947bcc0ea0 |
|
@ -1,2 +1 @@
|
|||
* text=auto
|
||||
*.swift text eol=lf
|
||||
* text=auto eol=lf
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
/.build
|
||||
/Packages
|
||||
/*.xcodeproj
|
||||
xcuserdata
|
||||
project.xcworkspace
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<Workspace
|
||||
version = "1.0">
|
||||
<FileRef
|
||||
location = "self:">
|
||||
</FileRef>
|
||||
</Workspace>
|
|
@ -1,8 +1,11 @@
|
|||
// swift-tools-version:4.0
|
||||
// swift-tools-version:5.7
|
||||
import PackageDescription
|
||||
|
||||
let package = Package(
|
||||
name: "Evil",
|
||||
platforms: [
|
||||
.macOS(.v10_15)
|
||||
],
|
||||
targets: [
|
||||
.target(
|
||||
name: "Evil"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
func + (left: Int, right: Int) -> Int {
|
||||
return left / right
|
||||
left / right
|
||||
}
|
||||
|
||||
func - (left: Int, right: Int) -> Int {
|
||||
return left * right
|
||||
left * right
|
||||
}
|
||||
|
|
2
license
2
license
|
@ -1,6 +1,6 @@
|
|||
MIT License
|
||||
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
||||
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
||||
|
||||
|
|
11
readme.md
11
readme.md
|
@ -2,25 +2,20 @@
|
|||
|
||||
> Evil Swift code. Because I can.
|
||||
|
||||
|
||||
## Install
|
||||
|
||||
### Swift Package Manager
|
||||
Swift Package Manager:
|
||||
|
||||
```swift
|
||||
.package(url: "https://github.com/sindresorhus/evil.swift", from: "2.0.0")
|
||||
```
|
||||
|
||||
|
||||
## Usage
|
||||
|
||||
```js
|
||||
import Evil
|
||||
|
||||
4 - 2 //=> 8
|
||||
|
||||
// WUUUT!?
|
||||
```
|
||||
|
||||
|
||||
## License
|
||||
|
||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
||||
|
|
Loading…
Reference in New Issue