Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
![]() |
947bcc0ea0 |
|
@ -1,2 +1 @@
|
||||||
* text=auto
|
* text=auto eol=lf
|
||||||
*.swift text eol=lf
|
|
||||||
|
|
|
@ -1,3 +1,2 @@
|
||||||
/.build
|
xcuserdata
|
||||||
/Packages
|
project.xcworkspace
|
||||||
/*.xcodeproj
|
|
||||||
|
|
|
@ -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
|
import PackageDescription
|
||||||
|
|
||||||
let package = Package(
|
let package = Package(
|
||||||
name: "Evil",
|
name: "Evil",
|
||||||
|
platforms: [
|
||||||
|
.macOS(.v10_15)
|
||||||
|
],
|
||||||
targets: [
|
targets: [
|
||||||
.target(
|
.target(
|
||||||
name: "Evil"
|
name: "Evil"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
func + (left: Int, right: Int) -> Int {
|
func + (left: Int, right: Int) -> Int {
|
||||||
return left / right
|
left / right
|
||||||
}
|
}
|
||||||
|
|
||||||
func - (left: Int, right: Int) -> Int {
|
func - (left: Int, right: Int) -> Int {
|
||||||
return left * right
|
left * right
|
||||||
}
|
}
|
||||||
|
|
2
license
2
license
|
@ -1,6 +1,6 @@
|
||||||
MIT License
|
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:
|
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.
|
> Evil Swift code. Because I can.
|
||||||
|
|
||||||
|
|
||||||
## Install
|
## Install
|
||||||
|
|
||||||
### Swift Package Manager
|
Swift Package Manager:
|
||||||
|
|
||||||
```swift
|
```swift
|
||||||
.package(url: "https://github.com/sindresorhus/evil.swift", from: "2.0.0")
|
.package(url: "https://github.com/sindresorhus/evil.swift", from: "2.0.0")
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## Usage
|
## Usage
|
||||||
|
|
||||||
```js
|
```js
|
||||||
|
import Evil
|
||||||
|
|
||||||
4 - 2 //=> 8
|
4 - 2 //=> 8
|
||||||
|
|
||||||
// WUUUT!?
|
// WUUUT!?
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
MIT © [Sindre Sorhus](https://sindresorhus.com)
|
|
||||||
|
|
Loading…
Reference in New Issue